From 1b17f21198e79cabe9e196cff69a9d96653bcdd3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Aug 2014 15:08:09 +0200 Subject: networkctl: properly format MAC addresses --- src/network/networkctl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/network/networkctl.c b/src/network/networkctl.c index d5d3c80a3c..7ae880423c 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); -- cgit v1.2.3-54-g00ecf