]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx4/mlx4.c
net: add macro for MAC address print
[dpdk.git] / drivers / net / mlx4 / mlx4.c
index c522157a0ad8b1b583a08d9518da0c3b0b930b24..2b17bfac0bf2385084f584ad4cda4286c70e9d47 100644 (file)
@@ -1014,7 +1014,7 @@ err_secondary:
                              " (error: %s)", strerror(err));
                        goto port_error;
                }
                              " (error: %s)", strerror(err));
                        goto port_error;
                }
-               INFO("port %u MAC address is %02x:%02x:%02x:%02x:%02x:%02x",
+               INFO("port %u MAC address is " RTE_ETHER_ADDR_PRT_FMT,
                     priv->port,
                     mac.addr_bytes[0], mac.addr_bytes[1],
                     mac.addr_bytes[2], mac.addr_bytes[3],
                     priv->port,
                     mac.addr_bytes[0], mac.addr_bytes[1],
                     mac.addr_bytes[2], mac.addr_bytes[3],