diff options
author | Havoc Pennington <hp@redhat.com> | 2002-11-25 05:23:03 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2002-11-25 05:23:03 +0000 |
commit | 4a74f8fcaba1b9d7ff962fd3c5655e57c2c32c81 (patch) | |
tree | febe9d527702b719a4d61c29c8ea16ad67b14c4c | |
parent | 041b0767b284034aee09e9a0de2a3844b8cc546a (diff) |
2002-11-25 Havoc Pennington <hp@pobox.com>
* dbus/dbus-internals.c (_dbus_verbose): fix to not
always print the first verbose message.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dbus/dbus-internals.c | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2002-11-25 Havoc Pennington <hp@pobox.com> + + * dbus/dbus-internals.c (_dbus_verbose): fix to not + always print the first verbose message. + 2002-11-24 Havoc Pennington <hp@pobox.com> * test/echo-client.c, test/echo-server.c: cheesy test diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index e90703e4..0fd01c29 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -155,6 +155,10 @@ _dbus_verbose (const char *format, static dbus_bool_t verbose = TRUE; static dbus_bool_t initted = FALSE; + /* things are written a bit oddly here so that + * in the non-verbose case we just have the one + * conditional and return immediately. + */ if (!verbose) return; @@ -162,6 +166,8 @@ _dbus_verbose (const char *format, { verbose = getenv ("DBUS_VERBOSE") != NULL; initted = TRUE; + if (!verbose) + return; } va_start (args, format); |