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 99143a6..80e1419 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