Skip to content

Commit

Permalink
drivers/infiniband/hw/cxgb3/iwch_cm.c: use %pM to show MAC address
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Steve Wise <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
bigguiness authored and davem330 committed Jan 7, 2010
1 parent 4754b3d commit eacc4d6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions drivers/infiniband/hw/cxgb3/iwch_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,15 +1371,8 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
tim.mac_addr = req->dst_mac;
tim.vlan_tag = ntohs(req->vlan_tag);
if (tdev->ctl(tdev, GET_IFF_FROM_MAC, &tim) < 0 || !tim.dev) {
printk(KERN_ERR
"%s bad dst mac %02x %02x %02x %02x %02x %02x\n",
__func__,
req->dst_mac[0],
req->dst_mac[1],
req->dst_mac[2],
req->dst_mac[3],
req->dst_mac[4],
req->dst_mac[5]);
printk(KERN_ERR "%s bad dst mac %pM\n",
__func__, req->dst_mac);
goto reject;
}

Expand Down

0 comments on commit eacc4d6

Please sign in to comment.