From 899bfab1b03f1c300ba8c40b0187807097d8acfe Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 14 Nov 2017 14:11:25 +0000 Subject: [PATCH 02/13] Windows autolaunch: Turn stdout spam into stderr spam This is still not how warnings and diagnostics should be done (the advice should probably be included in the DBusError) but at least this way it won't interfere with machine-readable output on stdout. Signed-off-by: Simon McVittie --- dbus/dbus-sysdeps-win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 980b431e..90a55a7c 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -3082,8 +3082,8 @@ _dbus_get_autolaunch_address (const char *scope, DBusString *address, { dbus_set_error_const (error, DBUS_ERROR_FAILED, "could not find dbus-daemon executable"); retval = FALSE; - printf ("please add the path to %s to your PATH environment variable\n", daemon_name); - printf ("or start the daemon manually\n\n"); + fprintf (stderr, "please add the path to %s to your PATH environment variable\n", daemon_name); + fprintf (stderr, "or start the daemon manually\n\n"); goto out; } _dbus_verbose( "found dbus daemon executable at %s",dbus_module_path); -- 2.15.0