You need to build a suitable format string. The printf() function does not have the ability to print an array at a time, so you need to split it and print each uint8_t :
__printf("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n", orig[0] & 0xff, orig[1] & 0xff, orig[2] & 0xff, orig[3] & 0xff, orig[4] & 0xff, orig[5] & 0xff);
& 0xff is to ensure onlu 8 bits are sent to printf() ; they should not be needed for an unsigned type of type uint8_t , although you can try without it.
This assumes a regular 48-bit MAC address and prints using the usual hexadecimal style.
unwind
source share