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

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-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c