mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 20:58:14 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
b03c3bacf5
commit
26b4b2d99c
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user