diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-12 15:08:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-12 15:08:09 +0200 |
commit | 1b17f21198e79cabe9e196cff69a9d96653bcdd3 (patch) | |
tree | cc5e4d77161891b0c3f2bfd54994573f6e2bd6b9 /src/network/networkctl.c | |
parent | 03cc0fd1431b82e59c11ae12a274c1f2df23169d (diff) |
networkctl: properly format MAC addresses
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 11 |
1 files changed, 2 insertions, 9 deletions
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); |