Commit 61013828 authored by Kamal Heib's avatar Kamal Heib Committed by Doug Ledford

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: default avatarKamal Heib <kamalh@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent c05d2664
...@@ -78,7 +78,7 @@ void rxe_do_task(unsigned long data) ...@@ -78,7 +78,7 @@ void rxe_do_task(unsigned long data)
default: default:
spin_unlock_irqrestore(&task->state_lock, flags); spin_unlock_irqrestore(&task->state_lock, flags);
pr_warn("bad state = %d in rxe_do_task\n", task->state); pr_warn("%s failed with bad state %d\n", __func__, task->state);
return; return;
} }
...@@ -105,7 +105,7 @@ void rxe_do_task(unsigned long data) ...@@ -105,7 +105,7 @@ void rxe_do_task(unsigned long data)
break; break;
default: default:
pr_warn("bad state = %d in rxe_do_task\n", pr_warn("%s failed with bad state %d\n", __func__,
task->state); task->state);
} }
spin_unlock_irqrestore(&task->state_lock, flags); spin_unlock_irqrestore(&task->state_lock, flags);
......
...@@ -1336,15 +1336,15 @@ int rxe_register_device(struct rxe_dev *rxe) ...@@ -1336,15 +1336,15 @@ int rxe_register_device(struct rxe_dev *rxe)
err = ib_register_device(dev, NULL); err = ib_register_device(dev, NULL);
if (err) { if (err) {
pr_warn("rxe_register_device failed, err = %d\n", err); pr_warn("%s failed with error %d\n", __func__, err);
goto err1; goto err1;
} }
for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) { for (i = 0; i < ARRAY_SIZE(rxe_dev_attributes); ++i) {
err = device_create_file(&dev->dev, rxe_dev_attributes[i]); err = device_create_file(&dev->dev, rxe_dev_attributes[i]);
if (err) { if (err) {
pr_warn("device_create_file failed, i = %d, err = %d\n", pr_warn("%s failed with error %d for attr number %d\n",
i, err); __func__, err, i);
goto err2; goto err2;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment