align SPDX Mellanox copyrights
[dpdk.git] / drivers / net / mlx5 / mlx5_mac.c
index ba54c05..526e843 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  * Copyright 2015 6WIND S.A.
- * Copyright 2015 Mellanox.
+ * Copyright 2015 Mellanox Technologies, Ltd
  */
 
 #include <stddef.h>
@@ -73,8 +73,8 @@ mlx5_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)
                int ret = mlx5_traffic_restart(dev);
 
                if (ret)
-                       ERROR("%p cannot remove mac address: %s", (void *)dev,
-                             strerror(rte_errno));
+                       DRV_LOG(ERR, "port %u cannot remove mac address: %s",
+                               dev->data->port_id, strerror(rte_errno));
        }
 }
 
@@ -130,8 +130,11 @@ mlx5_mac_addr_set(struct rte_eth_dev *dev, struct ether_addr *mac_addr)
 {
        int ret;
 
-       DEBUG("%p: setting primary MAC address", (void *)dev);
+       DRV_LOG(DEBUG, "port %u setting primary MAC address",
+               dev->data->port_id);
+
        ret = mlx5_mac_addr_add(dev, mac_addr, 0, 0);
        if (ret)
-               ERROR("cannot set mac address: %s", strerror(rte_errno));
+               DRV_LOG(ERR, "port %u cannot set mac address: %s",
+                       dev->data->port_id, strerror(rte_errno));
 }