xusb: add check for interface kernel driver This commit adds a call to libusb_kernel_driver_active and prints out the result. This provides a way to quickly check the result when testing. Signed-off-by: Nathan Hjelm <hjelmn@google.com>
diff --git a/examples/xusb.c b/examples/xusb.c index bf328fe..61ce4dd 100644 --- a/examples/xusb.c +++ b/examples/xusb.c
@@ -914,6 +914,8 @@ libusb_set_auto_detach_kernel_driver(handle, 1); for (iface = 0; iface < nb_ifaces; iface++) { + int ret = libusb_kernel_driver_active(handle, iface); + printf("\nKernel driver attached for interface %d: %d\n", iface, ret); printf("\nClaiming interface %d...\n", iface); r = libusb_claim_interface(handle, iface); if (r != LIBUSB_SUCCESS) {
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index fa21711..374ee65 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h
@@ -1 +1 @@ -#define LIBUSB_NANO 11641 +#define LIBUSB_NANO 11642