Git commit 5d88c1bc969c5fa634259c5945773818fc526341 by Thomas Friedrichsmeier. Committed on 20/05/2017 at 20:20. Pushed by tfry into branch 'frameworks'.
Err... debug to stderr, of course M +1 -1 doc/rkward/man-rkward.1.docbook M +3 -3 rkward/main.cpp https://commits.kde.org/rkward/5d88c1bc969c5fa634259c5945773818fc526341 diff --git a/doc/rkward/man-rkward.1.docbook b/doc/rkward/man-rkward.1.docbook index d978b9c5..6a5729ff 100644 --- a/doc/rkward/man-rkward.1.docbook +++ b/doc/rkward/man-rkward.1.docbook @@ -67,7 +67,7 @@ </varlistentry> <varlistentry> <term><option>--debug-output</option> <replaceable>where</replaceable></term> -<listitem><para>Where to send debug output. Default is to store it in a file in the temporary directory. Specifying "terminal" will write debug output to stdout, instead (useful for debugging, sometimes). Not that debug output from the backend process is always stored in a file.</para></listitem> +<listitem><para>Where to send debug output. Default is to store it in a file in the temporary directory. Specifying "terminal" will write debug output to stderr, instead (useful for debugging, sometimes). Not that debug output from the backend process is always stored in a file.</para></listitem> </varlistentry> <varlistentry> <term><option>--debug-flags</option> <replaceable>flags</replaceable></term> diff --git a/rkward/main.cpp b/rkward/main.cpp index c215bb83..5179cc4a 100644 --- a/rkward/main.cpp +++ b/rkward/main.cpp @@ -125,12 +125,12 @@ void RKDebugMessageOutput (QtMsgType type, const QMessageLogContext &ctx, const if (RK_Debug_Terminal) { #ifdef QT_MESSAGELOGCONTEXT - printf ("%s, %s: %s", ctx.file, ctx.function, qPrintable (msg)); + fprintf (stderr, "%s, %s: %s", ctx.file, ctx.function, qPrintable (msg)); #else Q_UNUSED (ctx); - printf ("%s", qPrintable (msg)); + fprintf (stderr, "%s", qPrintable (msg)); #endif - printf ("\n"); + fprintf (stderr, "\n"); } else { #ifdef QT_MESSAGELOGCONTEXT RKSettingsModuleDebug::debug_file->write (ctx.file);
