Commit d998ab0b authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by David S. Miller

drivers/s390/net/qeth_l2_main.c: use %pM to shown MAC address

Use the %pM kernel extension to display the MAC address.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5491f3a5
...@@ -486,22 +486,14 @@ static int qeth_l2_send_setmac_cb(struct qeth_card *card, ...@@ -486,22 +486,14 @@ static int qeth_l2_send_setmac_cb(struct qeth_card *card,
case IPA_RC_L2_DUP_MAC: case IPA_RC_L2_DUP_MAC:
case IPA_RC_L2_DUP_LAYER3_MAC: case IPA_RC_L2_DUP_LAYER3_MAC:
dev_warn(&card->gdev->dev, dev_warn(&card->gdev->dev,
"MAC address " "MAC address %pM already exists\n",
"%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x " card->dev->dev_addr);
"already exists\n",
card->dev->dev_addr[0], card->dev->dev_addr[1],
card->dev->dev_addr[2], card->dev->dev_addr[3],
card->dev->dev_addr[4], card->dev->dev_addr[5]);
break; break;
case IPA_RC_L2_MAC_NOT_AUTH_BY_HYP: case IPA_RC_L2_MAC_NOT_AUTH_BY_HYP:
case IPA_RC_L2_MAC_NOT_AUTH_BY_ADP: case IPA_RC_L2_MAC_NOT_AUTH_BY_ADP:
dev_warn(&card->gdev->dev, dev_warn(&card->gdev->dev,
"MAC address " "MAC address %pM is not authorized\n",
"%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x " card->dev->dev_addr);
"is not authorized\n",
card->dev->dev_addr[0], card->dev->dev_addr[1],
card->dev->dev_addr[2], card->dev->dev_addr[3],
card->dev->dev_addr[4], card->dev->dev_addr[5]);
break; break;
default: default:
break; break;
...@@ -512,12 +504,8 @@ static int qeth_l2_send_setmac_cb(struct qeth_card *card, ...@@ -512,12 +504,8 @@ static int qeth_l2_send_setmac_cb(struct qeth_card *card,
memcpy(card->dev->dev_addr, cmd->data.setdelmac.mac, memcpy(card->dev->dev_addr, cmd->data.setdelmac.mac,
OSA_ADDR_LEN); OSA_ADDR_LEN);
dev_info(&card->gdev->dev, dev_info(&card->gdev->dev,
"MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x " "MAC address %pM successfully registered on device %s\n",
"successfully registered on device %s\n", card->dev->dev_addr, card->dev->name);
card->dev->dev_addr[0], card->dev->dev_addr[1],
card->dev->dev_addr[2], card->dev->dev_addr[3],
card->dev->dev_addr[4], card->dev->dev_addr[5],
card->dev->name);
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment