aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-07-10 13:53:39 -0500
committerRob Landley <rob@landley.net>2015-07-10 13:53:39 -0500
commitf380d139397dd3cd2bcc5df0330304ab1ceded1e (patch)
treef9d16eaa4ae4c8132cc9f45488ed2106db5a5071
parent60cdc06c4825de7688a3879892bf442e0e2f282a (diff)
downloadtoybox-f380d139397dd3cd2bcc5df0330304ab1ceded1e.tar.gz
ifconfig MAC addresses should be lowercase.
A minor nit, but for some reason this really stands out every time I run ifconfig...
-rw-r--r--toys/other/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c
index 6ee01c40..948043e2 100644
--- a/toys/other/ifconfig.c
+++ b/toys/other/ifconfig.c
@@ -123,7 +123,7 @@ static void display_ifconfig(char *name, int always, unsigned long long val[])
xprintf("%-9s Link encap:%s ", name, types[i].title);
if(i >= 0 && ifre.ifr_hwaddr.sa_family == ARPHRD_ETHER) {
xprintf("HWaddr ");
- for (i=0; i<6; i++) xprintf(":%02X"+!i, ifre.ifr_hwaddr.sa_data[i]);
+ for (i=0; i<6; i++) xprintf(":%02x"+!i, ifre.ifr_hwaddr.sa_data[i]);
}
xputc('\n');