Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-12-04 01:43:27 +0400
committerChristopher Faylor <me@cgf.cx>2011-12-04 01:43:27 +0400
commitb9aa81491f62f6053bb648f20143ba9e68051622 (patch)
tree4156e112e197c9d9e4de5d0eb3ba0e51b57b9364 /winsup/cygwin/dir.cc
parent8b2547826762b748ad5b2bbe4089c422c7cd312a (diff)
Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format option. * smallprint.cc (__small_vsprintf): Add parsing for %R to report on return values and possible errno from syscalls. * errno.cc (errmap): Add PRIVILEGE_NOT_HELD. * fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use shorter name to reduce debuggging output. * select.cc (start_thread_pipe): Ditto. (start_thread_serial): Ditto. (start_thread_socket): Ditto. (start_thread_mailslot): Ditto. * sigproc.cc (talktome): Ditto.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r--winsup/cygwin/dir.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index 34777b90b..10de6af33 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -257,7 +257,7 @@ closedir (DIR *dir)
if (dir->__d_cookie != __DIRENT_COOKIE)
{
set_errno (EBADF);
- syscall_printf ("-1 = closedir (%p)", dir);
+ syscall_printf ("%R = closedir(%p)", -1, dir);
return -1;
}
@@ -271,7 +271,7 @@ closedir (DIR *dir)
free (dir->__d_dirname);
free (dir->__d_dirent);
free (dir);
- syscall_printf ("%d = closedir (%p)", res);
+ syscall_printf ("%R = closedir(%p)", res);
return res;
}
@@ -320,7 +320,7 @@ mkdir (const char *dir, mode_t mode)
delete fh;
done:
- syscall_printf ("%d = mkdir (%s, %d)", res, dir, mode);
+ syscall_printf ("%R = mkdir(%s, %d)", res, dir, mode);
return res;
}
@@ -353,6 +353,6 @@ rmdir (const char *dir)
delete fh;
done:
- syscall_printf ("%d = rmdir (%s)", res, dir);
+ syscall_printf ("%R = rmdir(%s)", res, dir);
return res;
}