]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/dasd: Use dev_*() for device log messages
authorJan Höppner <hoeppner@linux.ibm.com>
Thu, 8 Feb 2024 16:42:48 +0000 (17:42 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:17 +0000 (18:19 -0400)
commit0ef87c0bb4eeb959d517a1cbd59c337a69013034
tree76842818447c9a3d2b8bf855ce32392753772bd8
parent7b8fa7a0c291cc110804316bcddb31edea72af39
s390/dasd: Use dev_*() for device log messages

[ Upstream commit 79ae56fc475869d636071f66d9e4ef2a3819eee6 ]

All log messages in dasd.c use the printk variants of pr_*(). They all
add the name of the affected device manually to the log message.
This can be simplified by using the dev_*() variants of printk, which
include the device information and make a separate call to dev_name()
unnecessary.

The KMSG_COMPONENT and the pr_fmt() definition can be dropped. Note that
this removes the "dasd: " prefix from the one pr_info() call in
dasd_init(). However, the log message already provides all relevant
information.

Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20240208164248.540985-10-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: c3116e62ddef ("s390/dasd: fix double module refcount decrement")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/block/dasd.c