summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-11-14 14:11:25 +0000
committerSimon McVittie <smcv@collabora.com>2017-11-15 12:07:47 +0000
commit3f3498c9c2026546d15227f6a154a2d38d9124e5 (patch)
tree76b0e5ee1a0502c570f021e98378ba3df0a2cd35
parent789750feee5bdc304e2486ea7e8700f94a32efc7 (diff)
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. See also https://bugs.freedesktop.org/show_bug.cgi?id=103756 Reviewed-by: Philip Withnall <withnall@endlessm.com> [smcv: Added a reference to #103756] Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601
-rw-r--r--dbus/dbus-sysdeps-win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
index 980b431e3..90a55a7c0 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);