Re: [PATCH] libusbg: print leading zero for MAC address bytes

2015-04-27 Thread Krzysztof Opasiak
Hello Stefan, On 04/24/2015 09:27 PM, Stefan Agner wrote: The ethernet gadget driver requires the hex formatted MAC address bytes with leading zero, in other words each byte needs to be two characters in length (see get_ether_addr in u_ether.c). The libc implementation ether_ntoa does not print

[PATCH] libusbg: print leading zero for MAC address bytes

2015-04-24 Thread Stefan Agner
The ethernet gadget driver requires the hex formatted MAC address bytes with leading zero, in other words each byte needs to be two characters in length (see get_ether_addr in u_ether.c). The libc implementation ether_ntoa does not print leading zeros. Hence use our own implementation which provide