summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/systeccan/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/canbus/systeccan/main.cpp')
-rw-r--r--src/plugins/canbus/systeccan/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/canbus/systeccan/main.cpp b/src/plugins/canbus/systeccan/main.cpp
index fcb76a3..89377a0 100644
--- a/src/plugins/canbus/systeccan/main.cpp
+++ b/src/plugins/canbus/systeccan/main.cpp
@@ -40,8 +40,12 @@
#include <QtSerialBus/qcanbusdevice.h>
#include <QtSerialBus/qcanbusfactory.h>
+#include <QtCore/qloggingcategory.h>
+
QT_BEGIN_NAMESPACE
+Q_LOGGING_CATEGORY(QT_CANBUS_PLUGINS_SYSTECCAN, "qt.canbus.plugins.systeccan")
+
class SystecCanBusPlugin : public QObject, public QCanBusFactoryV2
{
Q_OBJECT
@@ -61,7 +65,7 @@ public:
{
QString errorReason;
if (Q_UNLIKELY(!SystecCanBackend::canCreate(&errorReason))) {
- qWarning("%ls", qUtf16Printable(errorReason));
+ qCWarning(QT_CANBUS_PLUGINS_SYSTECCAN, "%ls", qUtf16Printable(errorReason));
if (errorMessage)
*errorMessage = errorReason;
return nullptr;