Skip to content

Commit

Permalink
net: show enetaddr in lowercase
Browse files Browse the repository at this point in the history
"ifconfig" and "ip" from normal Linux userspace shows ethernet addresses
normally in lowercase.  And the %pM format specifier in Linux does that,
too. Conform to this custom formatting.

Signed-off-by: Holger Schurig <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
holgerschurig authored and saschahauer committed Jun 2, 2014
1 parent 9b57fd2 commit 7158ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int string_to_ethaddr(const char *str, u8 enetaddr[6])

void ethaddr_to_string(const u8 enetaddr[6], char *str)
{
sprintf(str, "%02X:%02X:%02X:%02X:%02X:%02X",
sprintf(str, "%02x:%02x:%02x:%02x:%02x:%02x",
enetaddr[0], enetaddr[1], enetaddr[2], enetaddr[3],
enetaddr[4], enetaddr[5]);
}
Expand Down

0 comments on commit 7158ac3

Please sign in to comment.