mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
scsi: target: core: Stop using bdevname()
Just use the %pg format specifier instead. Link: https://lore.kernel.org/r/20211018065052.1822500-1-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
e6ab611352
commit
1b74ab77d6
@ -634,12 +634,10 @@ static ssize_t iblock_show_configfs_dev_params(struct se_device *dev, char *b)
|
||||
{
|
||||
struct iblock_dev *ib_dev = IBLOCK_DEV(dev);
|
||||
struct block_device *bd = ib_dev->ibd_bd;
|
||||
char buf[BDEVNAME_SIZE];
|
||||
ssize_t bl = 0;
|
||||
|
||||
if (bd)
|
||||
bl += sprintf(b + bl, "iBlock device: %s",
|
||||
bdevname(bd, buf));
|
||||
bl += sprintf(b + bl, "iBlock device: %pg", bd);
|
||||
if (ib_dev->ibd_flags & IBDF_HAS_UDEV_PATH)
|
||||
bl += sprintf(b + bl, " UDEV PATH: %s",
|
||||
ib_dev->ibd_udev_path);
|
||||
|
Loading…
Reference in New Issue
Block a user