From 3039fcc55395bb478f8ec91a79eb006586e56bf0 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 6 Jul 2023 16:52:32 +0200 Subject: [PATCH] remove superfluous \n --- message_handler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/message_handler.cpp b/message_handler.cpp index f904a4a..8b655bd 100755 --- a/message_handler.cpp +++ b/message_handler.cpp @@ -63,7 +63,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt switch (type) { case QtDebugMsg: { if (debugLevel == QtDebugMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d DEBG %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d DEBG %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -73,7 +73,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt } break; case QtInfoMsg: { if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d INFO %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d INFO %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -83,7 +83,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt } break; case QtWarningMsg: { if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg || debugLevel == QtWarningMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d WARN %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d WARN %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -94,7 +94,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt case QtCriticalMsg: { if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg || debugLevel == QtWarningMsg || debugLevel == QtCriticalMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d CRIT %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d CRIT %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -106,7 +106,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg || debugLevel == QtWarningMsg || debugLevel == QtCriticalMsg || debugLevel == QtFatalMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d FATAL %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d FATAL %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part,