summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qlogging.cpp
diff options
context:
space:
mode:
authorJohannes Grunenberg <nerixdev@outlook.de>2024-02-06 00:29:47 +0100
committerJohannes Grunenberg <nerixdev@outlook.de>2024-02-06 14:32:08 +0100
commitc05f987fcd36bf2f194f0dedb37f4eea7a68e4f5 (patch)
tree36eba2ffa226cef629f39b399839901aad5a5888 /src/corelib/global/qlogging.cpp
parent24224f1fe4b8cb6c9e3b1b94f7827305ef4a7040 (diff)
QLogging: Add missing newline in win_message_handler()
Neither win_outputDebugString_helper() nor OutputDebugString() add a newline at the end of the message, so one needs to be added before being passed to the output handler. A newline was previously present but removed when deduplicating calls to qFormatLogMessage(). Fixes: QTBUG-121947 Pick-to: 6.7 Change-Id: I9f1c1d8726e4234f24999f47c52340140d5a4614 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r--src/corelib/global/qlogging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index 50934701fa4..82257259a84 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -1861,7 +1861,7 @@ static bool win_message_handler(QtMsgType, const QMessageLogContext &,
if (shouldLogToStderr())
return false; // Leave logging up to stderr handler
- win_outputDebugString_helper(formattedMessage);
+ win_outputDebugString_helper(formattedMessage + u'\n');
return true; // Prevent further output to stderr
}