networkctl: properly format MAC addresses

This commit is contained in:
Lennart Poettering
2014-08-12 15:08:09 +02:00
parent 03cc0fd143
commit 1b17f21198
+2 -9
View File
@@ -355,15 +355,8 @@ static int link_status(char **args, unsigned n) {
if (model)
printf(" Model: %s\n", model);
if (have_mac) {
_cleanup_free_ char *h = NULL;
h = hexmem(&e, sizeof(e));
if (!h)
return log_oom();
printf(" HW Address: %s\n", h);
}
if (have_mac)
printf(" HW Address: %s\n", ether_ntoa(&e));
if (mtu > 0)
printf(" MTU: %u\n", mtu);