diff options
author | Roland Dreier | 2008-04-23 20:55:43 +0200 |
---|---|---|
committer | Roland Dreier | 2008-04-23 20:55:43 +0200 |
commit | e447703123d817b3f802c6eb69171d5342c8832e (patch) | |
tree | 2d84835bbd6f4427785772be252c8b34c7d0da4e /drivers/infiniband/hw/nes/nes_utils.c | |
parent | RDMA/nes: Use print_mac() to format ethernet addresses for printing (diff) | |
download | kernel-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.c | 4 |
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; } |