From ef66f422be559b68165e2ab0df648b6d289fe056 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Fri, 4 Nov 2016 16:14:27 -0500 Subject: [PATCH] Print underlying error for "interface claim failed" This prints the libusb error in addition to "interface claim failed". It is useful to know the error from libusb to help figure out why "interface claim failed". --- libfprint/drivers/uru4000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/drivers/uru4000.c b/libfprint/drivers/uru4000.c index ccaa87f..462b86a 100644 --- a/libfprint/drivers/uru4000.c +++ b/libfprint/drivers/uru4000.c @@ -1285,7 +1285,7 @@ static int dev_init(struct fp_img_dev *dev, unsigned long driver_data) r = libusb_claim_interface(dev->udev, iface_desc->bInterfaceNumber); if (r < 0) { - fp_err("interface claim failed"); + fp_err("interface claim failed: %s", libusb_error_name(r)); goto out; } -- 2.7.4