summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-15 15:01:04 +0200
committerNikolai Kondrashov <spbnick@gmail.com>2018-05-15 16:11:00 +0300
commit6b50a9224fac005a3fef9d1ab7f748adf0527853 (patch)
treec8b82677195414d76b1905accb4bd14cf8182cb6
parent219721afa64a0290b2ba5f9864ba2afcb1e57637 (diff)
downloadusbhid-dump-6b50a9224fac005a3fef9d1ab7f748adf0527853.tar.gz
usbhid-dump.c: remove deprecated libusb_set_debug() call
Replace libusb_set_debug() with the "correct" libusb_set_option() call. This removes a warning message from the build on newer versions of libusb. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--src/usbhid-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c
index e0d03bf..b10423a 100644
--- a/src/usbhid-dump.c
+++ b/src/usbhid-dump.c
@@ -526,8 +526,8 @@ run(bool dump_descriptor,
/* Create libusb context */
LIBUSB_GUARD(libusb_init(&ctx), "create libusb context");
- /* Set libusb debug level */
- libusb_set_debug(ctx, 3);
+ /* Set libusb debug level to informational only */
+ libusb_set_option(ctx, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO);
/* Open device list */
LIBUSB_GUARD(uhd_dev_list_open(ctx, bus_num, dev_addr,