1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 08:40:37 +02:00

atusb-eui64: print out set address with upper case characters in hex

Align read out format with parameter format to allow easier
scripting for production.
This commit is contained in:
Stefan Schmidt 2016-11-19 11:30:15 +01:00
parent 434b4716d0
commit ae1455cc7d

View File

@ -153,7 +153,7 @@ static void show_usb_info(struct atrf_dsc *dsc, unsigned char *mac, int write)
get_eui64(dev, eui64, EUI64_LEN); get_eui64(dev, eui64, EUI64_LEN);
printf("Current EUI64 address from EEPROM: "); printf("Current EUI64 address from EEPROM: ");
for (i = 0; i < EUI64_LEN; i++) { for (i = 0; i < EUI64_LEN; i++) {
printf("%02x", eui64[EUI64_LEN - 1 - i]); printf("%02X", eui64[EUI64_LEN - 1 - i]);
if (i < EUI64_LEN -1) if (i < EUI64_LEN -1)
printf(":"); printf(":");
} }