summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_utils.c
diff options
context:
space:
mode:
authorRoland Dreier2008-04-23 20:55:43 +0200
committerRoland Dreier2008-04-23 20:55:43 +0200
commite447703123d817b3f802c6eb69171d5342c8832e (patch)
tree2d84835bbd6f4427785772be252c8b34c7d0da4e /drivers/infiniband/hw/nes/nes_utils.c
parentRDMA/nes: Use print_mac() to format ethernet addresses for printing (diff)
downloadkernel-qcow2-linux-e447703123d817b3f802c6eb69171d5342c8832e.tar.gz
kernel-qcow2-linux-e447703123d817b3f802c6eb69171d5342c8832e.tar.xz
kernel-qcow2-linux-e447703123d817b3f802c6eb69171d5342c8832e.zip
RDMA/nes: Print IPv4 addresses in a readable format
Use NIPQUAD_FMT instead of printing raw 32-bit hex quantities in debugging output. Acked-by: Glenn Streiff <gstreiff@neteffect.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_utils.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_utils.c b/drivers/infiniband/hw/nes/nes_utils.c
index f9db07c2717d..c6d5631a6995 100644
--- a/drivers/infiniband/hw/nes/nes_utils.c
+++ b/drivers/infiniband/hw/nes/nes_utils.c
@@ -660,7 +660,9 @@ int nes_arp_table(struct nes_device *nesdev, u32 ip_addr, u8 *mac_addr, u32 acti
/* DELETE or RESOLVE */
if (arp_index == nesadapter->arp_table_size) {
- nes_debug(NES_DBG_NETDEV, "mac address not in ARP table - cannot delete or resolve\n");
+ nes_debug(NES_DBG_NETDEV, "MAC for " NIPQUAD_FMT " not in ARP table - cannot %s\n",
+ HIPQUAD(ip_addr),
+ action == NES_ARP_RESOLVE ? "resolve" : "delete");
return -1;
}