projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8370eef
)
device.c: use format_macaddr() helper to convert mac addresses to strings, ether_ntoa...
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 28 Sep 2012 15:41:08 +0000
(17:41 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 28 Sep 2012 20:16:15 +0000
(23:16 +0300)
device.c
patch
|
blob
|
history
diff --git
a/device.c
b/device.c
index 0788757380aab309232500b5e3499f540b314994..97fb27f1c8883e22b428c8b11d7dd8e8b7baf464 100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-662,7
+662,7
@@
device_dump_status(struct blob_buf *b, struct device *dev)
if (st.flags & DEV_OPT_MTU)
blobmsg_add_u32(b, "mtu", st.mtu);
if (st.flags & DEV_OPT_MACADDR)
- blobmsg_add_string(b, "macaddr",
ether_ntoa((struct ether_addr *)
st.macaddr));
+ blobmsg_add_string(b, "macaddr",
format_macaddr(
st.macaddr));
if (st.flags & DEV_OPT_TXQUEUELEN)
blobmsg_add_u32(b, "txqueuelen", st.txqueuelen);
}