
From: Simon Glass <sjg@chromium.org> Use hex values to fit better with how these devices are accessed with the 'part list' command and others. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/scsi/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 58ac40fb3dd..560f7fe35ec 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -492,7 +492,7 @@ static int do_scsi_scan_one(struct udevice *dev, int id, int lun, bool verbose) * to make sure that there won't be a lot of * block devices created */ - snprintf(str, sizeof(str), "id%dlun%d", id, lun); + snprintf(str, sizeof(str), "id%xlun%x", id, lun); name = strdup(str); if (!name) return log_msg_ret("nam", -ENOMEM); -- 2.43.0