changeset 86:b7397959ae68

cp2102-decode-ee-desc: show bMaxPacketSize0 in decimal
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 27 Sep 2023 18:46:10 +0000
parents 0787525a33e2
children 4393e1b4b245
files cp2102/decode_usb_desc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cp2102/decode_usb_desc.c	Wed Sep 27 18:43:14 2023 +0000
+++ b/cp2102/decode_usb_desc.c	Wed Sep 27 18:46:10 2023 +0000
@@ -32,7 +32,7 @@
 	printf("  bDeviceClass:       0x%02X\n", eeprom[0x38C]);
 	printf("  bDeviceSubClass:    0x%02X\n", eeprom[0x38D]);
 	printf("  bDeviceProtocol:    0x%02X\n", eeprom[0x38E]);
-	printf("  bMaxPacketSize0:    0x%02X\n", eeprom[0x38F]);
+	printf("  bMaxPacketSize0:    %u\n", eeprom[0x38F]);
 	printf("  idVendor:           0x%02X%02X\n",
 		eeprom[0x391], eeprom[0x390]);
 	printf("  idProduct:          0x%02X%02X\n",