aboutsummaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorHeinrich Schuchardt2021-01-25 12:57:15 +0100
committerSimon Glass2021-01-30 14:25:42 -0700
commitf84eda89e5970ef513fe64ba8e8d977788c44dca (patch)
tree2a3481ec79471d395a0b2b154a3898c835344c65 /disk
parent168e313b5b128a0a2e55010875c1636dead38527 (diff)
disk: part: sandbox support in dev_print()
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>
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c
index b69fd345f36..85b1af55e2c 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -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,