]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk: part: sandbox support in dev_print()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 25 Jan 2021 11:57:15 +0000 (12:57 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:42 +0000 (14:25 -0700)
Commands like 'fatinfo' call dev_print() to print device information. If
the block device is created via 'host bind', we should print accurate
information.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
disk/part.c

index b69fd345f3600c11a389057e549958b3d667326b..85b1af55e2c10e7d77013aa4f74d61d0a4cb7d34 100644 (file)
@@ -150,6 +150,7 @@ void dev_print (struct blk_desc *dev_desc)
        case IF_TYPE_USB:
        case IF_TYPE_NVME:
        case IF_TYPE_PVBLOCK:
+       case IF_TYPE_HOST:
                printf ("Vendor: %s Rev: %s Prod: %s\n",
                        dev_desc->vendor,
                        dev_desc->revision,