From 3ca49ee64ee23f090573c592baf3b20a85dc6b1e Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 18 Aug 2022 13:00:27 +0200 Subject: [PATCH] kwinglplatform: Use qInfo instead of writing to stdout directly Ensures the output passes through Qt's message handler infrastructure. Signed-off-by: Victoria Fischer --- src/libkwineffects/kwinglplatform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libkwineffects/kwinglplatform.cpp b/src/libkwineffects/kwinglplatform.cpp index 77095f80fd..b3f1e2971f 100644 --- a/src/libkwineffects/kwinglplatform.cpp +++ b/src/libkwineffects/kwinglplatform.cpp @@ -1136,8 +1136,7 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) static void print(const QByteArray &label, const QByteArray &setting) { - std::cout << std::setw(40) << std::left - << label.data() << setting.data() << std::endl; + qInfo("%-40s%s", label.data(), setting.data()); } void GLPlatform::printResults() const