diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-08-15 16:27:09 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-08-15 16:27:09 +0000 |
commit | c4bd83770022e78e9fbd7f1eefb57ad7c69456cd (patch) | |
tree | d170d37c5d61cda5d0fedcc97342fc94287c38c9 /winsup/cygwin/syscalls.cc | |
parent | 6d70255fe8fa15d41c3e15e0fdb273da00e16702 (diff) | |
download | cygnal-c4bd83770022e78e9fbd7f1eefb57ad7c69456cd.tar.gz cygnal-c4bd83770022e78e9fbd7f1eefb57ad7c69456cd.tar.bz2 cygnal-c4bd83770022e78e9fbd7f1eefb57ad7c69456cd.zip |
* path.cc (get_nt_native_path): Allow to convert special paths which
have no native NT path representation for simplified debug output.
* syscalls.cc: Convert debug output to print native NT path.
(unlink): Drop redundant debug output.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 5df131ea7..8e1c97961 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -538,8 +538,6 @@ unlink (const char *ourname) goto done; } - syscall_printf ("_unlink (%s)", win32_name.get_win32 ()); - if (!win32_name.exists ()) { syscall_printf ("unlinking a nonexistent file"); @@ -1356,8 +1354,8 @@ stat_worker (path_conv &pc, struct __stat64 *buf) if (!(fh = build_fh_pc (pc))) goto error; - debug_printf ("(%s, %p, %p), file_attributes %d", - pc.normalized_path, buf, fh, (DWORD) *fh); + debug_printf ("(%S, %p, %p), file_attributes %d", + pc.get_nt_native_path (), buf, fh, (DWORD) *fh); memset (buf, 0, sizeof (*buf)); res = fh->fstat (buf); if (!res) @@ -1376,7 +1374,7 @@ stat_worker (path_conv &pc, struct __stat64 *buf) error: MALLOC_CHECK; - syscall_printf ("%d = (%s, %p)", res, pc.normalized_path ?: "", buf); + syscall_printf ("%d = (%S, %p)", res, pc.get_nt_native_path (), buf); return res; } @@ -2057,8 +2055,9 @@ setmode (int fd, int mode) else cfd->set_flags ((cfd->get_flags () & ~(O_TEXT | O_BINARY)) | mode); - syscall_printf ("(%d<%s>, %p) returning %s", fd, cfd->get_name (), - mode, res & O_TEXT ? "text" : "binary"); + syscall_printf ("(%d<%s>, %p) returning %s", fd, + cfd->pc.get_nt_native_path (), mode, + res & O_TEXT ? "text" : "binary"); return res; } |