diff options
author | Mike Sullivan <mksully22@gmail.com> | 2018-05-07 18:39:05 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-08 06:46:13 +0000 |
commit | 9b7b944ceb69719e91e2e9954ca9e3174ec764dc (patch) | |
tree | 44b92a16257997159a3b17bf11a0153a93b9987a /main/flashrom/libusb_set_option.patch | |
parent | 0bfa32206e54e4ccc9c7c8a67e8c76cf50a0a403 (diff) | |
download | aports-9b7b944ceb69719e91e2e9954ca9e3174ec764dc.tar.bz2 aports-9b7b944ceb69719e91e2e9954ca9e3174ec764dc.tar.xz |
main/flashrom: replace deprecated libusb_set_debug call to fix build
Diffstat (limited to 'main/flashrom/libusb_set_option.patch')
-rw-r--r-- | main/flashrom/libusb_set_option.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/flashrom/libusb_set_option.patch b/main/flashrom/libusb_set_option.patch new file mode 100644 index 0000000000..8e457fa976 --- /dev/null +++ b/main/flashrom/libusb_set_option.patch @@ -0,0 +1,11 @@ +--- a/ch341a_spi.c ++++ b/ch341a_spi.c +@@ -444,7 +444,7 @@ + return -1; + } + +- libusb_set_debug(NULL, 3); // Enable information, warning and error messages (only). ++ libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO); // Enable information, warning and error messages (only). + + uint16_t vid = devs_ch341a_spi[0].vendor_id; + uint16_t pid = devs_ch341a_spi[0].device_id; |