diff options
author | Nikias Bassen | 2009-05-23 13:15:05 +0200 |
---|---|---|
committer | Nikias Bassen | 2009-05-23 13:15:05 +0200 |
commit | e6de508029e3db03eb295b466d18f2ccf790902b (patch) | |
tree | a990dc268e94cf5c16f4ecedda96e30866af21b6 /src/main.c | |
parent | f6c4deed001629a408cca62cbf8e82bf303554db (diff) | |
download | usbmuxd-e6de508029e3db03eb295b466d18f2ccf790902b.tar.gz usbmuxd-e6de508029e3db03eb295b466d18f2ccf790902b.tar.bz2 |
Some debugging output for usb_open().
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -690,13 +690,12 @@ static void *usbmuxd_client_init_thread(void *arg) udev = usb_open(dev); if (udev) { usb_get_string_simple(udev, - dev->descriptor. - iSerialNumber, - dev_info_rec.device. - serial_number, - sizeof(dev_info_rec.device. - serial_number) + 1); + dev->descriptor.iSerialNumber, + dev_info_rec.device.serial_number, + sizeof(dev_info_rec.device.serial_number) + 1); usb_close(udev); + } else { + logmsg(LOG_ERR, "%s[%x]: Error: usb_open(): %s\n", __func__, THREAD, usb_strerror()); } //pthread_mutex_unlock(&usbmux_mutex); } |