diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-04-23 22:55:43 +0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-23 22:55:43 +0400 |
commit | e447703123d817b3f802c6eb69171d5342c8832e (patch) | |
tree | 2d84835bbd6f4427785772be252c8b34c7d0da4e /drivers/infiniband/hw/nes/nes_utils.c | |
parent | 2bd01c5d2ed04838d50548cb7b955505a20ac0bd (diff) | |
download | linux-e447703123d817b3f802c6eb69171d5342c8832e.tar.xz |
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; } |