mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <>
To: Barebox List <>
Subject: [PATCH] usb: storage: Improve message
Date: Thu, 17 Jun 2021 16:14:52 +0200	[thread overview]
Message-ID: <> (raw)

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 <>
 drivers/usb/storage/usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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-> = basprintf("disk%d", result);
 	pblk_dev->blk.blockbits = SECTOR_SHIFT;

barebox mailing list

                 reply	other threads:[~2021-06-17 14:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox