net: add macro for MAC address print
[dpdk.git] / drivers / net / failsafe / failsafe.c
index 8216063..919d287 100644 (file)
@@ -260,7 +260,7 @@ fs_eth_dev_create(struct rte_vdev_device *vdev)
                if (i == priv->subs_tail)
                        rte_eth_random_addr(&mac->addr_bytes[0]);
        }
-       INFO("MAC address is %02x:%02x:%02x:%02x:%02x:%02x",
+       INFO("MAC address is " RTE_ETHER_ADDR_PRT_FMT,
                mac->addr_bytes[0], mac->addr_bytes[1],
                mac->addr_bytes[2], mac->addr_bytes[3],
                mac->addr_bytes[4], mac->addr_bytes[5]);