Nico Huber has submitted this change and it was merged. (
https://review.coreboot.org/27503 )
Change subject: digilent_spi: Avoid deprecated libusb functions
......................................................................
digilent_spi: Avoid deprecated libusb functions
libusb 1.0.22 marked libusb_set_debug as deprecated. For such versions of
libusb, use libusb_set_option instead.
Change-Id: Ie139de36f15c4f4d87787cab0f968a2f0e6f0c8c
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
Reviewed-on:
https://review.coreboot.org/27503
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Martin Roth <martinroth(a)google.com>
---
M digilent_spi.c
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Martin Roth: Looks good to me, approved
diff --git a/digilent_spi.c b/digilent_spi.c
index 458e1b6..d42c90f 100644
--- a/digilent_spi.c
+++ b/digilent_spi.c
@@ -386,7 +386,11 @@
return -1;
}
+#if LIBUSB_API_VERSION < 0x01000106
libusb_set_debug(NULL, 3);
+#else
+ libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO);
+#endif
uint16_t vid = devs_digilent_spi[0].vendor_id;
uint16_t pid = devs_digilent_spi[0].device_id;
--
To view, visit
https://review.coreboot.org/27503
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie139de36f15c4f4d87787cab0f968a2f0e6f0c8c
Gerrit-Change-Number: 27503
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>