[Toybox] [PATCH] ifconfig MAC addresses should be lowercase.
enh
enh at google.com
Mon Jul 6 23:08:11 PDT 2015
ifconfig MAC addresses should be lowercase.
A minor nit, but for some reason this really stands out every time I
run ifconfig...
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c
index 6ee01c4..948043e 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');
More information about the Toybox
mailing list