diff options
author | Marcus Meissner <meissner@suse.de> | 2018-08-09 07:40:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 07:40:31 +0200 |
commit | 741b243d931f4b3c0514b8020120ce9ac8d5072c (patch) | |
tree | db2b8228480e714f8cb78eb645fa0c3ce618944f | |
parent | dc827033556a1bd53e8496a87447ce35fa8c08a2 (diff) | |
parent | 9ba9f8c72e321a041ba0ae3c9aaf52ec3e49b54f (diff) | |
download | libmtp-741b243d931f4b3c0514b8020120ce9ac8d5072c.tar.gz |
Merge pull request #13 from emericg/master
Downgrade a trace from error to info, plus whitespace cleanups
-rw-r--r-- | src/libopenusb1-glue.c | 6 | ||||
-rw-r--r-- | src/libusb-glue.c | 2 | ||||
-rw-r--r-- | src/libusb1-glue.c | 2 | ||||
-rw-r--r-- | src/util.c | 1 |
4 files changed, 5 insertions, 6 deletions
diff --git a/src/libopenusb1-glue.c b/src/libopenusb1-glue.c index 84cfb6b..5d0875e 100644 --- a/src/libopenusb1-glue.c +++ b/src/libopenusb1-glue.c @@ -500,7 +500,7 @@ static LIBMTP_error_number_t get_mtp_usb_device_list(mtpdevice_list_t ** mtp_dev ret = openusb_parse_device_desc(libmtp_openusb_handle, dev, NULL, 0, &desc); if (ret != OPENUSB_SUCCESS) continue; - + if (desc.bDeviceClass != USB_CLASS_HUB) { int i; int found = 0; @@ -651,7 +651,7 @@ LIBMTP_error_number_t LIBMTP_Detect_Raw_Devices(LIBMTP_raw_device_t ** devices, retdevs[i].device_entry.device_flags = mtp_device_table[j].device_flags; // This device is known to the developers - LIBMTP_ERROR("Device %d (VID=%04x and PID=%04x) is a %s %s.\n", + LIBMTP_INFO("Device %d (VID=%04x and PID=%04x) is a %s %s.\n", i, desc.idVendor, desc.idProduct, @@ -1239,7 +1239,7 @@ ptp_usb_senddata(PTPParams* params, PTPContainer* ptp, if (ret != PTP_RC_OK){ return ret; } - + if (gotlen != datawlen){ return PTP_RC_GeneralError; } diff --git a/src/libusb-glue.c b/src/libusb-glue.c index 9e20119..7b76b88 100644 --- a/src/libusb-glue.c +++ b/src/libusb-glue.c @@ -666,7 +666,7 @@ LIBMTP_error_number_t LIBMTP_Detect_Raw_Devices(LIBMTP_raw_device_t ** devices, retdevs[i].device_entry.device_flags = mtp_device_table[j].device_flags; // This device is known to the developers - LIBMTP_ERROR("Device %d (VID=%04x and PID=%04x) is a %s %s.\n", + LIBMTP_INFO("Device %d (VID=%04x and PID=%04x) is a %s %s.\n", i, dev->libusb_device->descriptor.idVendor, dev->libusb_device->descriptor.idProduct, diff --git a/src/libusb1-glue.c b/src/libusb1-glue.c index 6c88a24..636c544 100644 --- a/src/libusb1-glue.c +++ b/src/libusb1-glue.c @@ -690,7 +690,7 @@ LIBMTP_error_number_t LIBMTP_Detect_Raw_Devices(LIBMTP_raw_device_t ** devices, retdevs[i].device_entry.device_flags = mtp_device_table[j].device_flags; // This device is known to the developers - LIBMTP_ERROR("Device %d (VID=%04x and PID=%04x) is a %s %s.\n", + LIBMTP_INFO("Device %d (VID=%04x and PID=%04x) is a %s %s.\n", i, desc.idVendor, desc.idProduct, @@ -149,4 +149,3 @@ char *strndup (const char *s, size_t n) return ret; } #endif - |