]> git.baikalelectronics.ru Git - kernel.git/commit
block: use the %pg format specifier in printk_all_partitions
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 06:25:14 +0000 (08:25 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:28 +0000 (13:37 -0600)
commitcba2d77bc88795fbe2337f47ee5ca7ecb872145e
tree559bdfd9628f692832674f8758d4152c4bdfe9bd
parent9686e55bd6750684e521a48ca40f1dcc4523dbdf
block: use the %pg format specifier in printk_all_partitions

Simplify printing the partition name by using the %pg format specifier
that is equivalent to a bdevname call.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210727062518.122108-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c