aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib_main.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-29 01:37:22 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-29 02:02:36 -0400
commitfcace2fe7a86237c451b09aaf7e2e9d19e09887f (patch)
treec8ffce0ee37b0e659af53ce40a956c2f4a91bfb3 /drivers/infiniband/ulp/ipoib/ipoib_main.c
parent8867cd7c8678ff2d9d0382dbbfbcc7a3e7e61cbc (diff)
infiniband: ipoib replace IPOIB_GID_FMT with %p6
Replace all uses of IPOIB_GID_FMT, IPOIB_GID_RAW_ARG() and IPOIB_GID_ARG() Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_main.c')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_main.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index fddded7900d1..e7f4f94c3e92 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -359,9 +359,9 @@ void ipoib_mark_paths_invalid(struct net_device *dev)
359 spin_lock_irq(&priv->lock); 359 spin_lock_irq(&priv->lock);
360 360
361 list_for_each_entry_safe(path, tp, &priv->path_list, list) { 361 list_for_each_entry_safe(path, tp, &priv->path_list, list) {
362 ipoib_dbg(priv, "mark path LID 0x%04x GID " IPOIB_GID_FMT " invalid\n", 362 ipoib_dbg(priv, "mark path LID 0x%04x GID %p6 invalid\n",
363 be16_to_cpu(path->pathrec.dlid), 363 be16_to_cpu(path->pathrec.dlid),
364 IPOIB_GID_ARG(path->pathrec.dgid)); 364 path->pathrec.dgid.raw);
365 path->valid = 0; 365 path->valid = 0;
366 } 366 }
367 367
@@ -413,11 +413,11 @@ static void path_rec_completion(int status,
413 unsigned long flags; 413 unsigned long flags;
414 414
415 if (!status) 415 if (!status)
416 ipoib_dbg(priv, "PathRec LID 0x%04x for GID " IPOIB_GID_FMT "\n", 416 ipoib_dbg(priv, "PathRec LID 0x%04x for GID %p6\n",
417 be16_to_cpu(pathrec->dlid), IPOIB_GID_ARG(pathrec->dgid)); 417 be16_to_cpu(pathrec->dlid), pathrec->dgid.raw);
418 else 418 else
419 ipoib_dbg(priv, "PathRec status %d for GID " IPOIB_GID_FMT "\n", 419 ipoib_dbg(priv, "PathRec status %d for GID %p6\n",
420 status, IPOIB_GID_ARG(path->pathrec.dgid)); 420 status, path->pathrec.dgid.raw);
421 421
422 skb_queue_head_init(&skqueue); 422 skb_queue_head_init(&skqueue);
423 423
@@ -527,8 +527,8 @@ static int path_rec_start(struct net_device *dev,
527{ 527{
528 struct ipoib_dev_priv *priv = netdev_priv(dev); 528 struct ipoib_dev_priv *priv = netdev_priv(dev);
529 529
530 ipoib_dbg(priv, "Start path record lookup for " IPOIB_GID_FMT "\n", 530 ipoib_dbg(priv, "Start path record lookup for %p6\n",
531 IPOIB_GID_ARG(path->pathrec.dgid)); 531 path->pathrec.dgid.raw);
532 532
533 init_completion(&path->done); 533 init_completion(&path->done);
534 534
@@ -764,12 +764,11 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
764 764
765 if ((be16_to_cpup((__be16 *) skb->data) != ETH_P_ARP) && 765 if ((be16_to_cpup((__be16 *) skb->data) != ETH_P_ARP) &&
766 (be16_to_cpup((__be16 *) skb->data) != ETH_P_RARP)) { 766 (be16_to_cpup((__be16 *) skb->data) != ETH_P_RARP)) {
767 ipoib_warn(priv, "Unicast, no %s: type %04x, QPN %06x " 767 ipoib_warn(priv, "Unicast, no %s: type %04x, QPN %06x %p6\n",
768 IPOIB_GID_FMT "\n",
769 skb->dst ? "neigh" : "dst", 768 skb->dst ? "neigh" : "dst",
770 be16_to_cpup((__be16 *) skb->data), 769 be16_to_cpup((__be16 *) skb->data),
771 IPOIB_QPN(phdr->hwaddr), 770 IPOIB_QPN(phdr->hwaddr),
772 IPOIB_GID_RAW_ARG(phdr->hwaddr + 4)); 771 phdr->hwaddr + 4);
773 dev_kfree_skb_any(skb); 772 dev_kfree_skb_any(skb);
774 ++dev->stats.tx_dropped; 773 ++dev->stats.tx_dropped;
775 return NETDEV_TX_OK; 774 return NETDEV_TX_OK;
@@ -845,9 +844,9 @@ static void ipoib_neigh_cleanup(struct neighbour *n)
845 else 844 else
846 return; 845 return;
847 ipoib_dbg(priv, 846 ipoib_dbg(priv,
848 "neigh_cleanup for %06x " IPOIB_GID_FMT "\n", 847 "neigh_cleanup for %06x %p6\n",
849 IPOIB_QPN(n->ha), 848 IPOIB_QPN(n->ha),
850 IPOIB_GID_RAW_ARG(n->ha + 4)); 849 n->ha + 4);
851 850
852 spin_lock_irqsave(&priv->lock, flags); 851 spin_lock_irqsave(&priv->lock, flags);
853 852