target: stop using bdevname
Subsystems (2)
PATCH 1/1 target: stop using bdevname
Just use the %pg format specifier instead.
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/target/target_core_iblock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/target/target_core_iblock.c +1 -3
@@ -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);
Signature · 1 line
2.30.2
Martin K. Petersen
AppliedChristoph,
Quoted 1 line
Just use the %pg format specifier instead.
Applied to 5.16/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 3 lines · Christoph Hellwig
Just use the %pg format specifier instead.
Applied to 5.16/scsi-queue, thanks!
[1/1] target: stop using bdevname
https://git.kernel.org/mkp/scsi/c/1b74ab77d62f
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering