From 6062a736d2046c0b1f23d62ef58d173413e3d6f2 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 11 Aug 2012 15:24:46 +0200 Subject: usb-device: Fix usb_descriptor_info_print and Mk II name --- src/usb-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usb-device.c') diff --git a/src/usb-device.c b/src/usb-device.c index e33cac0..9042b63 100644 --- a/src/usb-device.c +++ b/src/usb-device.c @@ -42,7 +42,7 @@ static struct usb_flash_device usb_devices[] = { static const char * usb_flash_protocols[] = { [FLASH_NOLO] = "NOLO", [FLASH_COLD] = "Cold flashing", - [FLASH_MKII] = "Mkii protcol", + [FLASH_MKII] = "Mk II protocol", [FLASH_DISK] = "RAW disk", }; @@ -93,7 +93,7 @@ static void usb_descriptor_info_print(usb_dev_handle * udev, struct usb_device * break; } } - PRINTF_LINE("USB device serial number string: %s", buf2[0] ? buf2 : "(not detected)"); + PRINTF_LINE("USB device serial number string: %s", buf2[0] ? buf2 : ( buf[0] ? buf : "(not detected)" )); PRINTF_END(); } -- cgit v1.2.3