From 6c4dfe1340c0a49b42a53ffe7c3d7f0f3b25835a Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Sun, 8 Dec 2019 13:20:50 +0100 Subject: [PATCH] [BUGFIX] Fix a segfault in debug mode with lightpack (#651) --- libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp b/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp index c834d782..eb3db0b2 100644 --- a/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp +++ b/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp @@ -231,7 +231,7 @@ int LedDeviceLightpack::testAndOpen(libusb_device * device, const QString & requ _ledBuffer[0] = CMD_UPDATE_LEDS; // return success - Debug(_log, "Lightpack device opened: bus=%d address=%d serial=%s version=%s.%s.", _busNumber, _addressNumber, QSTRING_CSTR(_serialNumber), _firmwareVersion.majorVersion, _firmwareVersion.minorVersion ); + Debug(_log, "Lightpack device opened: bus=%d address=%d serial=%s version=%d.%d.", _busNumber, _addressNumber, QSTRING_CSTR(_serialNumber), _firmwareVersion.majorVersion, _firmwareVersion.minorVersion ); return 0; } catch(int e)