aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygserver
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2017-03-24 16:46:17 +0100
committerCorinna Vinschen <corinna@vinschen.de>2017-03-24 17:53:40 +0100
commit4dbcfeb7d0c388eba837d5b055f669a85d057442 (patch)
tree004b8ea07d17c6c0af26868cb12f8f52b97e6ed4 /winsup/cygserver
parentb80b2c011936f7f075b76b6e59f9e8a5ec49caa1 (diff)
downloadnewlib-4dbcfeb7d0c388eba837d5b055f669a85d057442.zip
newlib-4dbcfeb7d0c388eba837d5b055f669a85d057442.tar.gz
newlib-4dbcfeb7d0c388eba837d5b055f669a85d057442.tar.bz2
cygserver: Small code cleanup
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygserver')
-rw-r--r--winsup/cygserver/bsd_mutex.cc2
-rw-r--r--winsup/cygserver/bsd_mutex.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygserver/bsd_mutex.cc b/winsup/cygserver/bsd_mutex.cc
index b95692b..d546a61 100644
--- a/winsup/cygserver/bsd_mutex.cc
+++ b/winsup/cygserver/bsd_mutex.cc
@@ -46,7 +46,7 @@ _mtx_lock (mtx *m, DWORD winpid, const char *file, int line)
_panic (file, line, "wait for %s in %d failed, %u", m->name, winpid,
GetLastError ());
m->owner = winpid;
- _log (file, line, LOG_DEBUG, "Locked mutex %s/%u (%u)",
+ _log (file, line, LOG_DEBUG, "Locked mutex %s/%u (owner: %u)",
m->name, ++m->cnt, winpid);
}
diff --git a/winsup/cygserver/bsd_mutex.h b/winsup/cygserver/bsd_mutex.h
index cb0cf22..9ac970b 100644
--- a/winsup/cygserver/bsd_mutex.h
+++ b/winsup/cygserver/bsd_mutex.h
@@ -36,10 +36,10 @@ enum ipc_type {
extern struct mtx Giant;
void mtx_init (mtx *, const char *, const void *, int);
-void _mtx_lock (mtx *, DWORD winpid, const char *, int);
+void _mtx_lock (mtx *, DWORD, const char *, int);
#define mtx_lock(m) _mtx_lock((m), (td->ipcblk->winpid), __FILE__, __LINE__)
int mtx_owned (mtx *, DWORD);
-void _mtx_assert(mtx *, int, DWORD winpid, const char *, int);
+void _mtx_assert(mtx *, int, DWORD, const char *, int);
#define mtx_assert(m,w,p) _mtx_assert((m),(w),(p),__FILE__,__LINE__)
void _mtx_unlock (mtx *, const char *, int);
#define mtx_unlock(m) _mtx_unlock((m),__FILE__,__LINE__)