[U-Boot] [PATCH 1/9] disk: support host devices in dev_print()

Stephen Warren swarren at wwwdotorg.org
Sat Aug 8 05:09:22 CEST 2015


Add a case statement for IF_TYPE_HOST in dev_print() so that it prints
the device type rather than the "device type unknown" message.

Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>
---
 disk/part.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/disk/part.c b/disk/part.c
index 43485c9148b0..4e72257434b6 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -179,6 +179,9 @@ void dev_print (block_dev_desc_t *dev_desc)
 	case IF_TYPE_DOC:
 		puts("device type DOC\n");
 		return;
+	case IF_TYPE_HOST:
+		puts("host device\n");
+		break;
 	case IF_TYPE_UNKNOWN:
 		puts("device type unknown\n");
 		return;
-- 
1.9.1



More information about the U-Boot mailing list