summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2019-04-28 14:38:13 +0200
committerAndré Hartmann <aha_1980@gmx.de>2019-04-29 07:01:06 +0000
commit9021f4185bb08a9845261a9f6abe314372e5aa59 (patch)
tree129b60afdf798722e303118da5eb29d34adbe850 /src/plugins/canbus
parentf82c72f199d1a19490e9e6adae66349a46e8c766 (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')
-rw-r--r--src/plugins/canbus/tinycan/tinycanbackend.cpp6
-rw-r--r--src/plugins/canbus/vectorcan/vectorcanbackend.cpp9
2 files changed, 10 insertions, 5 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);
diff --git a/src/plugins/canbus/vectorcan/vectorcanbackend.cpp b/src/plugins/canbus/vectorcan/vectorcanbackend.cpp
index 9026888..24dbe2c 100644
--- a/src/plugins/canbus/vectorcan/vectorcanbackend.cpp
+++ b/src/plugins/canbus/vectorcan/vectorcanbackend.cpp
@@ -271,7 +271,8 @@ void VectorCanBackendPrivate::setupChannel(const QString &interfaceName)
}
}
- qCritical("Unable to parse the channel %ls", qUtf16Printable(interfaceName));
+ qCCritical(QT_CANBUS_PLUGINS_VECTORCAN, "Unable to parse the channel %ls",
+ qUtf16Printable(interfaceName));
}
void VectorCanBackendPrivate::setupDefaultConfigurations()
@@ -388,7 +389,8 @@ XLstatus VectorCanBackendPrivate::loadDriver()
return status;
} else if (Q_UNLIKELY(driverRefCount < 0)) {
- qCritical("Wrong reference counter: %d", driverRefCount);
+ qCCritical(QT_CANBUS_PLUGINS_VECTORCAN, "Wrong driver reference counter: %d",
+ driverRefCount);
return XL_ERR_CANNOT_OPEN_DRIVER;
}
@@ -412,7 +414,8 @@ void VectorCanBackendPrivate::cleanupDriver()
--driverRefCount;
if (Q_UNLIKELY(driverRefCount < 0)) {
- qCritical("Wrong reference counter: %d", driverRefCount);
+ qCCritical(QT_CANBUS_PLUGINS_VECTORCAN, "Wrong driver reference counter: %d",
+ driverRefCount);
driverRefCount = 0;
} else if (driverRefCount == 0) {
::xlCloseDriver();