summaryrefslogtreecommitdiffstats
path: root/libk8055/libk8055.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-04-15 18:09:56 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-04-15 18:09:56 +0200
commit7211c6ced478aa2d1e2e20da2d9659f706e2e718 (patch)
tree95973463e3f079f2f937d112d317383ee4dc62d8 /libk8055/libk8055.c
parentf4cf6401bd6d40a853d0eb39c0d90588d4c98bb0 (diff)
downloadk8055-7211c6ced478aa2d1e2e20da2d9659f706e2e718.zip
k8055-7211c6ced478aa2d1e2e20da2d9659f706e2e718.tar.gz
libusb : libusb_set_debug -> libusb_set_optionHEADmaster
Diffstat (limited to 'libk8055/libk8055.c')
-rw-r--r--libk8055/libk8055.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c
index 23645c9..616dc15 100644
--- a/libk8055/libk8055.c
+++ b/libk8055/libk8055.c
@@ -242,7 +242,7 @@ static int k8055_takeover_device( struct k8055_dev* dev, int interface ) {
int k8055_set_debug( struct k8055_dev* dev, int level ) {
if (dev->usb_ctx)
- libusb_set_debug( dev->usb_ctx, level);
+ libusb_set_option( dev->usb_ctx, LIBUSB_OPTION_LOG_LEVEL, level);
return dev->debug_level = level;
}
@@ -260,7 +260,7 @@ int k8055_open_device( struct k8055_dev* dev, int board_address ) {
libusb_device** list;
libusb_device* found = NULL;
libusb_init( &dev->usb_ctx );
- libusb_set_debug( dev->usb_ctx, dev->debug_level);
+ libusb_set_option( dev->usb_ctx, LIBUSB_OPTION_LOG_LEVEL, dev->debug_level);
ssize_t cnt = libusb_get_device_list( dev->usb_ctx, &list );
if( cnt<0 ) {
if( dev->debug_level>0 ) fprintf( stderr, "Unable to list usb devices\n" );