aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_verbs.c
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2017-06-15 11:29:06 +0300
committerDoug Ledford <dledford@redhat.com>2017-07-24 08:43:12 -0400
commit61013828f6673fffc6ead0a62d52674ffc1b34dc (patch)
tree944b2fbe26688be5a5313a3a7126fc94fd93bfe9 /drivers/infiniband/sw/rxe/rxe_verbs.c
parentIB/rxe: Use DEVICE_ATTR_RO macro to show parent field (diff)
downloadlinux-dev-61013828f6673fffc6ead0a62d52674ffc1b34dc.tar.xz
linux-dev-61013828f6673fffc6ead0a62d52674ffc1b34dc.zip
IB/rxe: Use __func__ to print function's name
Its better to use __func__ to print functions name instead of writing the name in the print statement. Signed-off-by: Kamal Heib <kamalh@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_verbs.c')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_verbs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c
index ceab12a91d0c..aba3fa9ae599 100644
--- a/drivers/infiniband/sw/rxe/rxe_verbs.c
+++ b/drivers/infiniband/sw/rxe/rxe_verbs.c
@@ -1336,15 +1336,15 @@ int rxe_register_device(struct rxe_dev *rxe)
err = ib_register_device(dev, NULL);
if (err) {
- pr_warn("rxe_register_device failed, err = %d\n", err);
+ pr_warn("%s failed with error %d\n", __func__, err);
goto err1;
}
for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) {
err = device_create_file(&dev->dev, rxe_dev_attributes[i]);
if (err) {
- pr_warn("device_create_file failed, i = %d, err = %d\n",
- i, err);
+ pr_warn("%s failed with error %d for attr number %d\n",
+ __func__, err, i);
goto err2;
}
}