* fhandler.cc (fhandler_base::read): Remove superfluous check in
__small_printf format for strace.
This commit is contained in:
parent
3a72ce9d12
commit
d54b79d351
@ -1,3 +1,8 @@
|
|||||||
|
2004-12-05 Bas van Gompel <cygwin-patch@bavag.tmfweb.nl>
|
||||||
|
|
||||||
|
* fhandler.cc (fhandler_base::read): Remove superfluous check in
|
||||||
|
__small_printf format for strace.
|
||||||
|
|
||||||
2004-12-05 Bas van Gompel <cygwin-patch@bavag.tmfweb.nl>
|
2004-12-05 Bas van Gompel <cygwin-patch@bavag.tmfweb.nl>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when
|
* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when
|
||||||
|
@ -754,8 +754,7 @@ fhandler_base::read (void *in_ptr, size_t& len)
|
|||||||
for (int i = 0; i < copied_chars && i < 16; ++i)
|
for (int i = 0; i < copied_chars && i < 16; ++i)
|
||||||
{
|
{
|
||||||
unsigned char c = ((unsigned char *) ptr)[i];
|
unsigned char c = ((unsigned char *) ptr)[i];
|
||||||
/* >= 33 so space prints in hex */
|
__small_sprintf (p, " %c", c);
|
||||||
__small_sprintf (p, c >= 33 && c <= 127 ? " %c" : " %p", c);
|
|
||||||
p += strlen (p);
|
p += strlen (p);
|
||||||
}
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user