summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-10-30 09:02:30 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-10-30 09:02:30 +0000
commit460af5f9c0eeaf3e4147c6882430e4df024bfddb (patch)
tree71066b1129c8abaa3dde7ae1ed36cffcce17d5b4 /winsup/cygwin/fhandler_disk_file.cc
parentdc3d6d9093d3cab0a412b7e5694d3a8fcd116d5c (diff)
downloadcygnal-460af5f9c0eeaf3e4147c6882430e4df024bfddb.tar.gz
cygnal-460af5f9c0eeaf3e4147c6882430e4df024bfddb.tar.bz2
cygnal-460af5f9c0eeaf3e4147c6882430e4df024bfddb.zip
* smallprint.cc (hex_str): New const string.
(__rn): Drop str and use hex_str instead. (__small_vsprintf): If 'l' modifier has been found, print subsequent multibyte or wide char string using the s, S, or W options in extended hex value layout. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Print WCHAR and resulting multibyte filename in extended hex value layout in debug output.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index d65938ce2..3bf24b037 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -2053,7 +2053,8 @@ go_ahead:
res = 0;
}
- syscall_printf ("%d = readdir (%p, %p) (%s)", res, dir, &de, res ? "***" : de->d_name);
+ syscall_printf ("%d = readdir (%p, %p) (L\"%lS\" > \"%ls\")", res, dir, &de,
+ res ? NULL : &fname, res ? "***" : de->d_name);
return res;
}