]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-launch: do not verbose output if build with verbose mode disabled
authorChengwei Yang <chengwei.yang@intel.com>
Wed, 26 Jun 2013 12:31:07 +0000 (20:31 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 26 Jun 2013 14:23:35 +0000 (15:23 +0100)
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66068

tools/dbus-launch.c

index 99143a62ee49399eb65831d86027d44f005c9153..80e1419d661accbaee50bbf4c3ce03b0614a874f 100644 (file)
@@ -153,6 +153,7 @@ void
 verbose (const char *format,
          ...)
 {
+#ifdef DBUS_ENABLE_VERBOSE_MODE
   va_list args;
   static int verbose = TRUE;
   static int verbose_initted = FALSE;
@@ -177,6 +178,7 @@ verbose (const char *format,
   va_start (args, format);
   vfprintf (stderr, format, args);
   va_end (args);
+#endif /* DBUS_ENABLE_VERBOSE_MODE */
 }
 
 static void