RDMA/ipoib: Print symbolic error name instead of error code
authorChristian Heusel <christian@heusel.eu>
Thu, 11 Jan 2024 14:13:07 +0000 (15:13 +0100)
committerLeon Romanovsky <leon@kernel.org>
Thu, 25 Jan 2024 09:50:58 +0000 (11:50 +0200)
commit64854534ff96641e69fa1b7b2caab54259255c14
tree245cd600b686a60dad0bd82294591b678ae16315
parent190a7affeece58f7727b5cad51d4d51461ece146
RDMA/ipoib: Print symbolic error name instead of error code

Utilize the %pe print specifier to get the symbolic error name as a
string (i.e "-ENOMEM") in the log message instead of the error code to
increase its readability.

This change was suggested in
https://lore.kernel.org/all/92972476-0b1f-4d0a-9951-af3fc8bc6e65@suswa.mountain/

Signed-off-by: Christian Heusel <christian@heusel.eu>
Link: https://lore.kernel.org/r/20240111141311.987098-1-christian@heusel.eu
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c