diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2019-04-28 14:38:13 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2019-04-29 07:01:06 +0000 |
commit | 9021f4185bb08a9845261a9f6abe314372e5aa59 (patch) | |
tree | 129b60afdf798722e303118da5eb29d34adbe850 /src/plugins/canbus/tinycan | |
parent | f82c72f199d1a19490e9e6adae66349a46e8c766 (diff) |
CAN: Port qCritical in Tiny and Vector pluging to qCCritical
Seems we missed them when porting all other debug and
warning messages.
Change-Id: I3f083de2ed0c4d9bf73842a7e0c2e09f3883a3bb
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/canbus/tinycan')
-rw-r--r-- | src/plugins/canbus/tinycan/tinycanbackend.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/canbus/tinycan/tinycanbackend.cpp b/src/plugins/canbus/tinycan/tinycanbackend.cpp index 3891186..882cb47 100644 --- a/src/plugins/canbus/tinycan/tinycanbackend.cpp +++ b/src/plugins/canbus/tinycan/tinycanbackend.cpp @@ -446,7 +446,8 @@ void TinyCanBackendPrivate::startupDriver() ::CanSetEvents(EVENT_ENABLE_RX_MESSAGES); } else if (Q_UNLIKELY(driverRefCount < 0)) { - qCritical("Wrong reference counter: %d", driverRefCount); + qCCritical(QT_CANBUS_PLUGINS_TINYCAN, "Wrong driver reference counter: %d", + driverRefCount); return; } @@ -458,7 +459,8 @@ void TinyCanBackendPrivate::cleanupDriver() --driverRefCount; if (Q_UNLIKELY(driverRefCount < 0)) { - qCritical("Wrong reference counter: %d", driverRefCount); + qCCritical(QT_CANBUS_PLUGINS_TINYCAN, "Wrong driver reference counter: %d", + driverRefCount); driverRefCount = 0; } else if (driverRefCount == 0) { ::CanSetEvents(EVENT_DISABLE_ALL); |