chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: never use ether_ntoa(), since it formats with %x, not %02x, which makes etherne...
[elogind.git]
/
src
/
network
/
networkctl.c
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index 620bc46b8fb8eb6fc7ab8b633a1833027c16a03b..33fe8bfc6103d91de4b80bbfe52f12306804f74d 100644
(file)
--- a/
src/network/networkctl.c
+++ b/
src/network/networkctl.c
@@
-33,6
+33,7
@@
#include "udev-util.h"
#include "arphrd-list.h"
#include "local-addresses.h"
#include "udev-util.h"
#include "arphrd-list.h"
#include "local-addresses.h"
+#include "socket-util.h"
static bool arg_no_pager = false;
static bool arg_legend = true;
static bool arg_no_pager = false;
static bool arg_legend = true;
@@
-402,8
+403,10
@@
static int link_status_one(sd_rtnl *rtnl, struct udev *udev, const char *name) {
if (model)
printf(" Model: %s\n", model);
if (model)
printf(" Model: %s\n", model);
- if (have_mac)
- printf(" HW Address: %s\n", ether_ntoa(&e));
+ if (have_mac) {
+ char ea[ETHER_ADDR_TO_STRING_MAX];
+ printf(" HW Address: %s\n", ether_addr_to_string(&e, ea));
+ }
if (mtu > 0)
printf(" MTU: %u\n", mtu);
if (mtu > 0)
printf(" MTU: %u\n", mtu);