summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/debug.h')
-rw-r--r--libpthread/linuxthreads/debug.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/debug.h b/libpthread/linuxthreads/debug.h
index 79acb23c0..a2ac5113a 100644
--- a/libpthread/linuxthreads/debug.h
+++ b/libpthread/linuxthreads/debug.h
@@ -23,13 +23,19 @@
#ifndef _PT_DEBUG_H
#define _PT_DEBUG_H
+#include <features.h>
+
+#ifdef __DODEBUG_PT__
+# define DEBUG_PT
+#endif
+
/* include asserts for now */
#define DO_ASSERT
/* define the PDEBUG macro here */
#undef PDEBUG
#ifdef DEBUG_PT
-# define PDEBUG(fmt, args...) __pthread_message(__FUNCTION__": " fmt, ## args)
+# define PDEBUG(fmt, args...) __pthread_message("%s: " fmt, __FUNCTION__, ## args)
#else
# define PDEBUG(fmt, args...) /* debug switched off */
#endif