@@ -43,10 +43,18 @@ static void dump_config(struct config *config)
struct interface_config *ifconf =
config->network.interfaces[i];
- pb_log(" interface %02x:%02x:%02x:%02x:%02x:%02x\n",
+ if (ifconf->hwaddr_len == 6) {
+ pb_log(" interface %02x:%02x:%02x:%02x:%02x:%02x\n",
ifconf->hwaddr[0], ifconf->hwaddr[1],
ifconf->hwaddr[2], ifconf->hwaddr[3],
ifconf->hwaddr[4], ifconf->hwaddr[5]);
+ } else if (ifconf->hwaddr_len == 8) {
+ pb_log(" interface %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n",
+ ifconf->hwaddr[0], ifconf->hwaddr[1],
+ ifconf->hwaddr[2], ifconf->hwaddr[3],
+ ifconf->hwaddr[4], ifconf->hwaddr[5],
+ ifconf->hwaddr[6], ifconf->hwaddr[7]);
+ }
if (ifconf->ignore) {
pb_log(" ignore\n");
Signed-off-by: Daniel M. Weeks <weeksd2@rpi.edu> --- discover/platform.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)