diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-03 21:43:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-03 21:43:27 +0000 |
commit | b9aa81491f62f6053bb648f20143ba9e68051622 (patch) | |
tree | 4156e112e197c9d9e4de5d0eb3ba0e51b57b9364 /winsup/cygwin/flock.cc | |
parent | 8b2547826762b748ad5b2bbe4089c422c7cd312a (diff) | |
download | newlib-b9aa81491f62f6053bb648f20143ba9e68051622.zip newlib-b9aa81491f62f6053bb648f20143ba9e68051622.tar.gz newlib-b9aa81491f62f6053bb648f20143ba9e68051622.tar.bz2 |
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/flock.cc')
-rw-r--r-- | winsup/cygwin/flock.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/flock.cc b/winsup/cygwin/flock.cc index 940b8b7..d88cb41 100644 --- a/winsup/cygwin/flock.cc +++ b/winsup/cygwin/flock.cc @@ -1520,7 +1520,7 @@ flock (int fd, int operation) if ((res == -1) && ((get_errno () == EAGAIN) || (get_errno () == EACCES))) set_errno (EWOULDBLOCK); done: - syscall_printf ("%d = flock (%d, %d)", res, fd, operation); + syscall_printf ("%R = flock(%d, %d)", res, fd, operation); return res; } @@ -1576,6 +1576,6 @@ lockf (int filedes, int function, _off64_t size) } res = cfd->lock (cmd, &fl); done: - syscall_printf ("%d = lockf (%d, %d, %D)", res, filedes, function, size); + syscall_printf ("%R = lockf(%d, %d, %D)", res, filedes, function, size); return res; } |