OSDN Git Service

ifconfig MAC addresses should be lowercase.
authorElliott Hughes <enh@google.com>
Fri, 10 Jul 2015 18:53:39 +0000 (13:53 -0500)
committerRob Landley <rob@landley.net>
Fri, 10 Jul 2015 18:53:39 +0000 (13:53 -0500)
A minor nit, but for some reason this really stands out every time I
run ifconfig...

toys/other/ifconfig.c

index 6ee01c4..948043e 100644 (file)
@@ -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');