Skip to content

Commit 1b74ab7

Browse files
Christoph Hellwigmartinkpetersen
authored andcommitted
scsi: target: core: Stop using bdevname()
Just use the %pg format specifier instead. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent e6ab611 commit 1b74ab7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/target/target_core_iblock.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,10 @@ static ssize_t iblock_show_configfs_dev_params(struct se_device *dev, char *b)
634634
{
635635
struct iblock_dev *ib_dev = IBLOCK_DEV(dev);
636636
struct block_device *bd = ib_dev->ibd_bd;
637-
char buf[BDEVNAME_SIZE];
638637
ssize_t bl = 0;
639638

640639
if (bd)
641-
bl += sprintf(b + bl, "iBlock device: %s",
642-
bdevname(bd, buf));
640+
bl += sprintf(b + bl, "iBlock device: %pg", bd);
643641
if (ib_dev->ibd_flags & IBDF_HAS_UDEV_PATH)
644642
bl += sprintf(b + bl, " UDEV PATH: %s",
645643
ib_dev->ibd_udev_path);

0 commit comments

Comments
 (0)