summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-02-13 20:23:30 +0000
committerHavoc Pennington <hp@redhat.com>2005-02-13 20:23:30 +0000
commitbe672187a56300d5aa15b1e5b3bfa5dc0fe48818 (patch)
tree237bb30a5fa5422c9a62b852c40149493720650d
parent7f2973c8d1e124f4744af0bee73679607511f3a4 (diff)
oops, committed some debug junk
-rw-r--r--dbus/dbus-internals.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
index a64269ac..c964fec1 100644
--- a/dbus/dbus-internals.c
+++ b/dbus/dbus-internals.c
@@ -215,7 +215,11 @@ _dbus_warn (const char *format,
static dbus_bool_t verbose_initted = FALSE;
+#define PTHREAD_IN_VERBOSE 0
+#if PTHREAD_IN_VERBOSE
#include <pthread.h>
+#endif
+
/**
* Prints a warning message to stderr
* if the user has enabled verbose mode.
@@ -250,7 +254,14 @@ _dbus_verbose_real (const char *format,
/* Print out pid before the line */
if (need_pid)
- fprintf (stderr, "%lu: 0x%lx: ", _dbus_getpid (), pthread_self ());
+ {
+#if PTHREAD_IN_VERBOSE
+ fprintf (stderr, "%lu: 0x%lx: ", _dbus_getpid (), pthread_self ());
+#else
+ fprintf (stderr, "%lu: ", _dbus_getpid ());
+#endif
+ }
+
/* Only print pid again if the next line is a new line */
len = strlen (format);