diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2024-04-04 18:20:28 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2024-04-04 18:21:13 +0200 |
commit | 38b51398359076eed01d8f1b0f9c061d16a658f5 (patch) | |
tree | 3fb80dae8801073ff0ebf44eb35fd4991edeabcb /winsup/cygwin | |
parent | 56e7563b9aa665f35b657537e46a7feb4726f763 (diff) | |
download | newlib-38b51398359076eed01d8f1b0f9c061d16a658f5.zip newlib-38b51398359076eed01d8f1b0f9c061d16a658f5.tar.gz newlib-38b51398359076eed01d8f1b0f9c061d16a658f5.tar.bz2 |
Cygwin: fhandler_base::fstat_by_name: improve debug output.
Since we're opening the parent dir, it doesn't make sense
to print the name of the file in debug output. Print parent
dirname instead.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/fhandler/disk_file.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler/disk_file.cc b/winsup/cygwin/fhandler/disk_file.cc index 724ce7f..f4c21d3 100644 --- a/winsup/cygwin/fhandler/disk_file.cc +++ b/winsup/cygwin/fhandler/disk_file.cc @@ -328,8 +328,7 @@ fhandler_base::fstat_by_name (struct stat *buf) | FILE_OPEN_FOR_BACKUP_INTENT | FILE_DIRECTORY_FILE); if (!NT_SUCCESS (status)) - debug_printf ("%y = NtOpenFile(%S)", status, - pc.get_nt_native_path ()); + debug_printf ("%y = NtOpenFile(%S)", status, &dirname); else { status = NtQueryDirectoryFile (dir, NULL, NULL, NULL, &io, @@ -338,8 +337,7 @@ fhandler_base::fstat_by_name (struct stat *buf) TRUE, &basename, TRUE); NtClose (dir); if (!NT_SUCCESS (status)) - debug_printf ("%y = NtQueryDirectoryFile(%S)", status, - pc.get_nt_native_path ()); + debug_printf ("%y = NtQueryDirectoryFile(%S)", status, &dirname); else ino = fdi_buf.fdi.FileId.QuadPart; } |