From f1b50ce3ce6721ffa22effc7a3330c581e78d7b9 Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Sun, 23 Jun 2013 11:40:49 +0800 Subject: [PATCH 4/5] dbus-launch: do not verbose output if build with verbose mode disabled Signed-off-by: Chengwei Yang --- tools/dbus-launch.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index beea27e..7e562b5 100644 --- a/tools/dbus-launch.c +++ b/tools/dbus-launch.c @@ -149,6 +149,7 @@ out: } #endif /* DBUS_BUILD_X11 */ +#ifdef DBUS_ENABLE_VERBOSE_MODE void verbose (const char *format, ...) @@ -178,6 +179,14 @@ verbose (const char *format, vfprintf (stderr, format, args); va_end (args); } +#else +void +verbose (const char *format, + ...) +{ + ; /* do nothing */ +} +#endif /* DBUS_ENABLE_VERBOSE_MODE */ static void usage (int ecode) -- 1.7.9.5