diff options
author | Kamal Heib <kamalheib1@gmail.com> | 2017-06-15 11:29:06 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-24 15:43:12 +0300 |
commit | 61013828f6673fffc6ead0a62d52674ffc1b34dc (patch) | |
tree | 944b2fbe26688be5a5313a3a7126fc94fd93bfe9 /drivers/infiniband/sw/rxe/rxe_task.c | |
parent | c05d26647b06b49e286b11cbd14e1444f9acc1c5 (diff) | |
download | linux-61013828f6673fffc6ead0a62d52674ffc1b34dc.tar.xz |
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_task.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_task.c b/drivers/infiniband/sw/rxe/rxe_task.c index d2a14a1bdc7f..ea3810b29273 100644 --- a/drivers/infiniband/sw/rxe/rxe_task.c +++ b/drivers/infiniband/sw/rxe/rxe_task.c @@ -78,7 +78,7 @@ void rxe_do_task(unsigned long data) default: 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; } @@ -105,7 +105,7 @@ void rxe_do_task(unsigned long data) break; default: - pr_warn("bad state = %d in rxe_do_task\n", + pr_warn("%s failed with bad state %d\n", __func__, task->state); } spin_unlock_irqrestore(&task->state_lock, flags); |