diff options
author | Tuomas Vaarala <tuomas.vaarala@qt.io> | 2024-04-25 14:35:54 +0300 |
---|---|---|
committer | Tuomas Vaarala <tuomas.vaarala@qt.io> | 2024-04-29 06:39:18 +0300 |
commit | 4946982534d4d256590dffd44046fe642456703f (patch) | |
tree | c0b83cd331646664e9475359bf123eea00259d48 /src/plugins/platforms/qnx/qqnxglobal.cpp | |
parent | f0633e823796775d2c019363ca4f1cb008851402 (diff) |
[QNX] Add support for QLoggingCategory in QNX QPA debug log output
Makes it possible to enable debug log outputs via QLoggingCategory.
Earlier it was only possible via buid time flags.
Change-Id: Iaec732e7acdf44a74c9d7c806bf0e6f5a5f87b1c
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxglobal.cpp')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxglobal.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxglobal.cpp b/src/plugins/platforms/qnx/qqnxglobal.cpp index 85642b44b3..9cfc328e8f 100644 --- a/src/plugins/platforms/qnx/qqnxglobal.cpp +++ b/src/plugins/platforms/qnx/qqnxglobal.cpp @@ -15,6 +15,8 @@ void qScreenCheckError(int rc, const char *funcInfo, const char *message, bool c } if (Q_UNLIKELY(rc)) { + qCDebug(lcQpaQnx, "%s - Screen: %s - Error: %s (%i)", funcInfo, message, strerror(errno), errno); + if (Q_UNLIKELY(critical)) qCritical("%s - Screen: %s - Error: %s (%i)", funcInfo, message, strerror(errno), errno); else |