aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2010-01-07 04:17:27 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-07 04:17:27 -0500
commiteacc4d6a7dc447ec4fc219af129e0fe50d21d8f7 (patch)
treefff18ed38ce2984a8f78481aefeed9dc8fe92ffc /drivers
parent4754b3de93f893e85d811031ff742fc7a4f53db4 (diff)
drivers/infiniband/hw/cxgb3/iwch_cm.c: use %pM to show MAC address
Use the %pM kernel extension to display the MAC address. The only difference in the output is that the MAC address is shown in the usual colon-separated hex notation. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_cm.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index 66b41351910a..d94388b81a40 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -1371,15 +1371,8 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1371 tim.mac_addr = req->dst_mac; 1371 tim.mac_addr = req->dst_mac;
1372 tim.vlan_tag = ntohs(req->vlan_tag); 1372 tim.vlan_tag = ntohs(req->vlan_tag);
1373 if (tdev->ctl(tdev, GET_IFF_FROM_MAC, &tim) < 0 || !tim.dev) { 1373 if (tdev->ctl(tdev, GET_IFF_FROM_MAC, &tim) < 0 || !tim.dev) {
1374 printk(KERN_ERR 1374 printk(KERN_ERR "%s bad dst mac %pM\n",
1375 "%s bad dst mac %02x %02x %02x %02x %02x %02x\n", 1375 __func__, req->dst_mac);
1376 __func__,
1377 req->dst_mac[0],
1378 req->dst_mac[1],
1379 req->dst_mac[2],
1380 req->dst_mac[3],
1381 req->dst_mac[4],
1382 req->dst_mac[5]);
1383 goto reject; 1376 goto reject;
1384 } 1377 }
1385 1378