summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/efa/efa_com_cmd.c
diff options
context:
space:
mode:
authorFiras Jahjah <firasj@amazon.com>2019-06-13 12:10:14 +0300
committerDoug Ledford <dledford@redhat.com>2019-06-21 18:52:44 +0300
commit4b06843d404855063decbccd206d3dc927280b0c (patch)
treeb6b98f9892ac1aab89c9d736b7e39d1df9f0b3de /drivers/infiniband/hw/efa/efa_com_cmd.c
parentb41f75724ab8aeeba1001e63c31db8623432f001 (diff)
downloadlinux-4b06843d404855063decbccd206d3dc927280b0c.tar.xz
RDMA/efa: Print address on AH creation failure
For debugging purposes, print destination address if failed to create AH. Signed-off-by: Firas Jahjah <firasj@amazon.com> Reviewed-by: Yossi Leybovich <sleybo@amazon.com> Signed-off-by: Gal Pressman <galpress@amazon.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/efa/efa_com_cmd.c')
-rw-r--r--drivers/infiniband/hw/efa/efa_com_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/efa/efa_com_cmd.c b/drivers/infiniband/hw/efa/efa_com_cmd.c
index d2464c8390bb..fad5c2ee7bb1 100644
--- a/drivers/infiniband/hw/efa/efa_com_cmd.c
+++ b/drivers/infiniband/hw/efa/efa_com_cmd.c
@@ -300,7 +300,8 @@ int efa_com_create_ah(struct efa_com_dev *edev,
(struct efa_admin_acq_entry *)&cmd_completion,
sizeof(cmd_completion));
if (err) {
- ibdev_err(edev->efa_dev, "Failed to create ah [%d]\n", err);
+ ibdev_err(edev->efa_dev, "Failed to create ah for %pI6 [%d]\n",
+ ah_cmd.dest_addr, err);
return err;
}