From 92967a7d1098e3bc2a1cd0fcb652ca3c331a4419 Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Sat, 16 Jun 2018 20:22:24 +0200 Subject: [PATCH] Use gousb_set_debug instead of libusb_set_debug in one more place. (#44) * One more place that should call gousb_set_debug instead of libusb_set_debug. * Better comment to explain what sort of benchmarking this is needed for. --- libusb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb.go b/libusb.go index 2406ca6..b24c64d 100644 --- a/libusb.go +++ b/libusb.go @@ -498,9 +498,9 @@ func xferCallback(xfer *C.struct_libusb_transfer) { ch <- struct{}{} } -// for benchmarking and testing +// for benchmarking of method on implementation vs vanilla function. func libusbSetDebug(c *libusbContext, lvl int) { - C.libusb_set_debug((*C.libusb_context)(c), C.int(lvl)) + C.gousb_set_debug((*C.libusb_context)(c), C.int(lvl)) } func newDevicePointer() *libusbDevice {