diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-09-28 17:41:08 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-09-28 23:16:15 +0300 |
commit | 67b225a9c0d38989028763de5c07164f0bfee504 (patch) | |
tree | a0d926bb00da7260d31ec17a890c683108f36631 | |
parent | 8370eef2bc724b3c08f8665e3caaaae9b75012f7 (diff) |
device.c: use format_macaddr() helper to convert mac addresses to strings, ether_ntoa() does not guarantee a canonical format
-rw-r--r-- | device.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |