From eefc954f915400e9d6885af3c28f549fdc6e1073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Pr=C3=ADvozn=C3=ADk?= Date: Sat, 25 Apr 2020 22:18:50 +0200 Subject: [PATCH] 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 --- libfprint/fp-context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fp-context.c b/libfprint/fp-context.c index e3859da..e70077f 100644 --- a/libfprint/fp-context.c +++ b/libfprint/fp-context.c @@ -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; }