aboutsummaryrefslogtreecommitdiff
path: root/iemnet_sender.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2012-07-13 20:49:53 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2012-07-13 20:49:53 +0000
commit9af796423b2a6303796a2b569ff03e230c292bad (patch)
treef10680ec6c5c4e43901cd7ec30fe4724c959d488 /iemnet_sender.c
parente876fb6cf8cf0b79bbbb621da68396530c1f7298 (diff)
cosmetic fixes (whitespace)
svn path=/trunk/externals/iem/iemnet/; revision=16156
Diffstat (limited to 'iemnet_sender.c')
-rw-r--r--iemnet_sender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iemnet_sender.c b/iemnet_sender.c
index b84d8ce..0e4f866 100644
--- a/iemnet_sender.c
+++ b/iemnet_sender.c
@@ -47,8 +47,8 @@
#if IEMNET_HAVE_DEBUG
static int debug_lockcount=0;
-# define LOCK(x) do {pthread_mutex_lock(x);debug_lockcount++; if(debuglevel&DEBUGLEVEL)post(" LOCK %d (@%s:%d)", debug_lockcount, __FILE__, __LINE__); } while(0)
-# define UNLOCK(x) do {debug_lockcount--;if(debuglevel&DEBUGLEVEL)post("UNLOCK %d (@%s:%d)", debug_lockcount, __FILE__, __LINE__);pthread_mutex_unlock(x);}while(0)
+# define LOCK(x) do {if(iemnet_debug(DEBUGLEVEL, __FILE__, __LINE__, __FUNCTION__))post(" LOCKing %p", x); pthread_mutex_lock(x);debug_lockcount++; if(iemnet_debug(DEBUGLEVEL, __FILE__, __LINE__, __FUNCTION__))post(" LOCKed %p[%d]", x, debug_lockcount); } while(0)
+# define UNLOCK(x) do {debug_lockcount--;if(iemnet_debug(DEBUGLEVEL, __FILE__, __LINE__, __FUNCTION__))post(" UNLOCK %p [%d]", x, debug_lockcount); pthread_mutex_unlock(x);}while(0)
#else
# define LOCK(x) pthread_mutex_lock(x)
# define UNLOCK(x) pthread_mutex_unlock(x)