aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.cc3
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 98d5f36..dc15981 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when
copied_chars is zero.
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index dabc2f1..3e7cee3 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -754,8 +754,7 @@ fhandler_base::read (void *in_ptr, size_t& len)
for (int i = 0; i < copied_chars && i < 16; ++i)
{
unsigned char c = ((unsigned char *) ptr)[i];
- /* >= 33 so space prints in hex */
- __small_sprintf (p, c >= 33 && c <= 127 ? " %c" : " %p", c);
+ __small_sprintf (p, " %c", c);
p += strlen (p);
}
*p = '\0';