mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-04 22:30:16 +01:00
2002-11-25 Havoc Pennington <hp@pobox.com>
* dbus/dbus-internals.c (_dbus_verbose): fix to not always print the first verbose message.
This commit is contained in:
parent
041b0767b2
commit
4a74f8fcab
2 changed files with 11 additions and 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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue