From d311a35f475efbdac2bedecbe3c14f20fbc70878 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 1 May 2013 10:57:05 +0000 Subject: [PATCH] resetting git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14369 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/usb/libusb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index f263020e0..14ac75455 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -433,12 +433,15 @@ gp_port_usb_reset(GPPort *port) { int ret; + gp_log (GP_LOG_DEBUG, "libusb", "Reseting port"); if (!port || !port->pl->dh) return GP_ERROR_BAD_PARAMETERS; ret = usb_reset(port->pl->dh); - if (ret < 0) + if (ret < 0) { + gp_log (GP_LOG_ERROR, "libusb", "gp_port_reset: %d", ret); return GP_ERROR_IO_READ; + } return GP_OK; }