Prefix hex values with 0x in core.c and os/openbsd_usb.c
authorMikolaj Kucharski <mikolaj@kucharski.name>
Sun, 27 Dec 2020 14:02:49 +0000 (14:02 +0000)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 15 Jan 2021 16:00:28 +0000 (08:00 -0800)
It makes it clear from debug logs, that values are in hex,
without a need to check the source code.

Closes #832

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/core.c
libusb/os/openbsd_usb.c
libusb/version_nano.h

index 051b4f7fbfbbacd02707901f7c253248a45cd341..701f981b7f9e95d143a67427326c4f68b3caf701 100644 (file)
@@ -1795,7 +1795,7 @@ int API_EXPORTED libusb_set_interface_alt_setting(libusb_device_handle *dev_hand
 int API_EXPORTED libusb_clear_halt(libusb_device_handle *dev_handle,
        unsigned char endpoint)
 {
-       usbi_dbg("endpoint %x", endpoint);
+       usbi_dbg("endpoint 0x%x", endpoint);
        if (!usbi_atomic_load(&dev_handle->dev->attached))
                return LIBUSB_ERROR_NO_DEVICE;
 
index e05610eeb62d2b02cf71dc9a9b46d5b9748bdce8..6ba47b49906a77aad21dbeb348e41d279c29a6f4 100644 (file)
@@ -565,7 +565,7 @@ _sync_control_transfer(struct usbi_transfer *itransfer)
        dpriv = usbi_get_device_priv(transfer->dev_handle->dev);
        setup = (struct libusb_control_setup *)transfer->buffer;
 
-       usbi_dbg("type %x request %x value %x index %d length %d timeout %d",
+       usbi_dbg("type 0x%x request 0x%x value 0x%x index %d length %d timeout %d",
            setup->bmRequestType, setup->bRequest,
            libusb_le16_to_cpu(setup->wValue),
            libusb_le16_to_cpu(setup->wIndex),
index 6e25f2d59bbf8c549b8b3ee2ae3cc485e64b61aa..903cd6f3f67e440e3ae10a96b776095410b3d52d 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11593
+#define LIBUSB_NANO 11594