aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-03-01 10:38:15 +0200
committerMike Snitzer <snitzer@redhat.com>2022-03-02 12:15:54 -0500
commit385411ffba0c3305491346b98ba4d2cd8063f002 (patch)
tree7a1d403b97060ac2e05a36981b8881cab6b2e42d /drivers/md/dm-mpath.c
parentdm-zoned: remove the ->name field in struct dmz_dev (diff)
downloadlinux-dev-385411ffba0c3305491346b98ba4d2cd8063f002.tar.xz
linux-dev-385411ffba0c3305491346b98ba4d2cd8063f002.zip
dm: stop using bdevname
Just use the %pg format specifier instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index f4719b65e5e3..411403b3ec43 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -899,10 +899,8 @@ retain:
if (m->hw_handler_name) {
r = scsi_dh_attach(q, m->hw_handler_name);
if (r == -EBUSY) {
- char b[BDEVNAME_SIZE];
-
- printk(KERN_INFO "dm-mpath: retaining handler on device %s\n",
- bdevname(bdev, b));
+ printk(KERN_INFO "dm-mpath: retaining handler on device %pg\n",
+ bdev);
goto retain;
}
if (r < 0) {