summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkctl.c11
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);