summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-06-17 16:14:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-21 06:10:32 +0200
commit6e361cf9478a335201622748931a53ba29f8edb9 (patch)
tree7aee5519eb83f5665f4bc396301a43c8e0d39d0c
parent59f9a95b1697b92c5e0752a1475dd92f1d7b4434 (diff)
downloadbarebox-6e361cf9478a335201622748931a53ba29f8edb9.tar.gz
barebox-6e361cf9478a335201622748931a53ba29f8edb9.tar.xz
usb: storage: Improve message
Instead of printing a "Using index %d for the new disk" without any context, use dev_info() to print the device context and also "disk%d" which is the name of the new device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20210617141452.3117-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/usb/storage/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index b0f789b42a..a43b498e4b 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -420,7 +420,7 @@ static int usb_stor_add_blkdev(struct us_data *us, unsigned char lun)
result = cdev_find_free_index("disk");
if (result == -1)
pr_err("Cannot find a free number for the disk node\n");
- pr_info("Using index %d for the new disk\n", result);
+ dev_info(dev, "registering as disk%d\n", result);
pblk_dev->blk.cdev.name = basprintf("disk%d", result);
pblk_dev->blk.blockbits = SECTOR_SHIFT;