* 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.
This commit is contained in:
Corinna Vinschen
2009-10-30 09:02:30 +00:00
parent dc3d6d9093
commit 460af5f9c0
3 changed files with 54 additions and 12 deletions

View File

@ -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;
}