summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usb-device.c4
1 files changed, 2 insertions, 2 deletions
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();
}