dbus/dbus dbus-internals.c,1.43,1.44
Havoc Pennington
hp at freedesktop.org
Sun Feb 13 12:23:32 PST 2005
Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv9361/dbus
Modified Files:
dbus-internals.c
Log Message:
oops, committed some debug junk
Index: dbus-internals.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-internals.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- dbus-internals.c 13 Feb 2005 20:21:59 -0000 1.43
+++ dbus-internals.c 13 Feb 2005 20:23:30 -0000 1.44
@@ -215,7 +215,11 @@
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 @@
/* 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);
More information about the dbus-commit
mailing list