context: Fix order of PID/VID in a debug message

When no driver is found for an USB device a debug message is
printed. However, it has PID and VID in wrong order - usually it
is Vendor ID which goes first. This is how 'lsusb' prints it.
Matching the order helps debugging.

Signed-off-by: Michal Privoznik <michal@privoznik.com>
This commit is contained in:
Michal Prívozník 2020-04-25 22:18:50 +02:00 committed by Benjamin Berg
parent 5bcf9ac008
commit eefc954f91

View file

@ -158,7 +158,7 @@ usb_device_added_cb (FpContext *self, GUsbDevice *device, GUsbContext *usb_ctx)
if (found_driver == G_TYPE_NONE)
{
g_debug ("No driver found for USB device %04X:%04X", pid, vid);
g_debug ("No driver found for USB device %04X:%04X", vid, pid);
return;
}