Tidied up debugging messages

This commit is contained in:
Michael Brown
2006-05-27 13:38:49 +00:00
parent aa2468babe
commit 1dbafa8950
2 changed files with 5 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ static const char * eth_ntoa ( const void *ll_addr ) {
static char buf[18]; /* "00:00:00:00:00:00" */
uint8_t *eth_addr = ll_addr;
sprintf ( buf, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
sprintf ( buf, "%02x:%02x:%02x:%02x:%02x:%02x",
eth_addr[0], eth_addr[1], eth_addr[2],
eth_addr[3], eth_addr[4], eth_addr[5] );
return buf;