]> sigrok.org Git - libsigrok.git/commitdiff
ftdi-la: Fix VID/PID format in a log message.
authorUwe Hermann <redacted>
Thu, 13 Jun 2019 22:15:24 +0000 (00:15 +0200)
committerUwe Hermann <redacted>
Thu, 13 Jun 2019 22:15:24 +0000 (00:15 +0200)
Before: 0x 403:0x6001
After:  0x0403:0x6001

src/hardware/ftdi-la/api.c

index 81d7cc8a3aa7f6a47bc74107085184377ee31419..432f566f84ed71a00f38b077e065a0c28b926de7 100644 (file)
@@ -107,7 +107,7 @@ static void scan_device(struct ftdi_context *ftdic,
        }
 
        if (!desc) {
-               sr_spew("Unsupported FTDI device 0x%4x:0x%4x.",
+               sr_spew("Unsupported FTDI device 0x%04x:0x%04x.",
                        usb_desc.idVendor, usb_desc.idProduct);
                return;
        }