From: Jo-Philipp Wich Date: Fri, 28 Sep 2012 15:41:08 +0000 (+0200) Subject: device.c: use format_macaddr() helper to convert mac addresses to strings, ether_ntoa... X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=67b225a9c0d38989028763de5c07164f0bfee504 device.c: use format_macaddr() helper to convert mac addresses to strings, ether_ntoa() does not guarantee a canonical format --- diff --git a/device.c b/device.c index 0788757..97fb27f 100644 --- 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); }