diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-07-30 19:00:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-31 16:48:23 -0700 |
commit | 26b4b2d99c3a0abe7b6ff4969f48afdda0931573 (patch) | |
tree | a706e1becc79b32ec8a3cac2ca5a6487f6958720 /drivers/net/ethernet/qlogic/qede | |
parent | b03c3bacf58fdb9774cf209a5773ae500556115f (diff) | |
download | linux-26b4b2d99c3a0abe7b6ff4969f48afdda0931573.tar.bz2 |
qede: Use %pM format specifier for MAC addresses
Convert to %pM instead of using custom code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qede')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index 1aaae3203f5a..4250c17940c0 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -144,9 +144,7 @@ static int qede_set_vf_mac(struct net_device *ndev, int vfidx, u8 *mac) { struct qede_dev *edev = netdev_priv(ndev); - DP_VERBOSE(edev, QED_MSG_IOV, - "Setting MAC %02x:%02x:%02x:%02x:%02x:%02x to VF [%d]\n", - mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], vfidx); + DP_VERBOSE(edev, QED_MSG_IOV, "Setting MAC %pM to VF [%d]\n", mac, vfidx); if (!is_valid_ether_addr(mac)) { DP_VERBOSE(edev, QED_MSG_IOV, "MAC address isn't valid\n"); |