projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03cc0fd
)
networkctl: properly format MAC addresses
author
Lennart Poettering
<lennart@poettering.net>
Tue, 12 Aug 2014 13:08:09 +0000
(15:08 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 12 Aug 2014 13:08:09 +0000
(15:08 +0200)
src/network/networkctl.c
patch
|
blob
|
history
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index
d5d3c80
..
7ae8804
100644
(file)
--- 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);