Uwe Bonnes wrote: > ... The microcontroller used to implement the STLink has a 96 bit > unique device serial number. It looks like the UBS implementation uses > this number as USB description iSerial. When this binary number is > printed as ACSII, garbage results: > > SerialNumber: WÿnIeRUG%# USB string descriptors use UTF-16, which is then converted to UTF-8 by the kernel. > As the user may need this serial number to distinguish several adapters > connected devices, a printout of the serial number as hex number would be > needed, as the ASCII printout will not print some byte values. > > Is changing the > drivers/usb/core/hub.c showstring() function > to check for non printable bytes and then print aout the hex values instead > of chars acceptable? It wouldn't work; the strings were already converted by usb_string(). You need to read the string descriptor manually. Regards, Clemens -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html