diff options
author | Johannes Erdfelt <johannes@erdfelt.com> | 2002-01-22 19:19:17 +0000 |
---|---|---|
committer | Johannes Erdfelt <johannes@erdfelt.com> | 2002-01-22 19:19:17 +0000 |
commit | e212c411dd04a0977bc45c8c617894696dbecabe (patch) | |
tree | 5a93e6dfda8c327e53247aba37ccf20f09ec4a24 /libgphoto2_port/usb | |
parent | 8cf5d6d67054571cffdf4daf0d60017f8b79299f (diff) | |
download | libgphoto2-e212c411dd04a0977bc45c8c617894696dbecabe.tar.gz |
Print the found message before the parsed defaults
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3990 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/usb')
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index 43fb63b13..a8774f173 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -493,6 +493,11 @@ gp_port_usb_find_device_by_class_lib(GPPort *port, int class, int subclass, int if (!ret) continue; + port->pl->d = dev; + gp_log (GP_LOG_VERBOSE, "gphoto2-port-usb", + "Looking for USB device " + "(class 0x%x, subclass, 0x%x, protocol 0x%x)... found.", + class, subclass, protocol); /* Set the defaults */ if (dev->config) { port->settings.usb.config = dev->config[config].bConfigurationValue; @@ -512,11 +517,6 @@ gp_port_usb_find_device_by_class_lib(GPPort *port, int class, int subclass, int port->settings.usb.outep); } - port->pl->d = dev; - gp_log (GP_LOG_VERBOSE, "gphoto2-port-usb", - "Looking for USB device " - "(class 0x%x, subclass, 0x%x, protocol 0x%x)... found.", - class, subclass, protocol); return GP_OK; } } |