From: Lennart Poettering Date: Tue, 12 Aug 2014 13:08:09 +0000 (+0200) Subject: networkctl: properly format MAC addresses X-Git-Tag: v216~184 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=1b17f21198e79cabe9e196cff69a9d96653bcdd3;hp=03cc0fd1431b82e59c11ae12a274c1f2df23169d networkctl: properly format MAC addresses --- diff --git a/src/network/networkctl.c b/src/network/networkctl.c index d5d3c80a3..7ae880423 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -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);