Skip to content

Commit

Permalink
netbsd: Print control transfer request debug values in hex
Browse files Browse the repository at this point in the history
Same as for OpenBSD.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
  • Loading branch information
tormodvolden committed Jul 7, 2023
1 parent 9891cf2 commit cfc6694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libusb/os/netbsd_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,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(ITRANSFER_CTX(itransfer), "type %d request %d value %d index %d length %d timeout %d",
usbi_dbg(ITRANSFER_CTX(itransfer), "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),
Expand Down
2 changes: 1 addition & 1 deletion libusb/version_nano.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define LIBUSB_NANO 11805
#define LIBUSB_NANO 11806

0 comments on commit cfc6694

Please sign in to comment.