[U-Boot] [patch 0/1] Add _all_ missing types to dev_print() in part.c

Recently a patch was added to U-boot to add IF_TYPE_USB to dev_print() in part.c I seem to have been overlooking this patch, so I fixed the same issue myself. However, after upgrading to latest git I noticed that there were still several types missing in this routine, so here is a patch to make the routine complete.

Add all missing types to dev_print() in part.c
Signed-off-by: Remy Bohmer linux@bohmer.net --- disk/part.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
Index: u-boot/disk/part.c =================================================================== --- u-boot.orig/disk/part.c 2008-09-19 12:49:29.000000000 +0200 +++ u-boot/disk/part.c 2008-09-19 13:16:38.000000000 +0200 @@ -117,6 +117,7 @@ void dev_print (block_dev_desc_t *dev_de dev_desc->product, dev_desc->revision); break; + case IF_TYPE_ATAPI: case IF_TYPE_IDE: case IF_TYPE_SATA: printf ("Model: %s Firm: %s Ser#: %s\n", @@ -124,15 +125,22 @@ void dev_print (block_dev_desc_t *dev_de dev_desc->revision, dev_desc->product); break; + case IF_TYPE_SD: + case IF_TYPE_MMC: case IF_TYPE_USB: printf ("Vendor: %s Rev: %s Prod: %s\n", dev_desc->vendor, dev_desc->revision, dev_desc->product); break; + case IF_TYPE_DOC: + puts("device type DOC\n"); + return; case IF_TYPE_UNKNOWN: + puts("device type unknown\n"); + return; default: - puts ("not available\n"); + printf("Unhandled device type: %i\n", dev_desc->if_type); return; } puts (" Type: ");

Dear Remy Bohmer,
In message 20080919113024.518534826@bohmer.net> you wrote:
Add all missing types to dev_print() in part.c
Signed-off-by: Remy Bohmer linux@bohmer.net
disk/part.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
Applied, thanks.
Best regards,
Wolfgang Denk
participants (2)
-
Remy Bohmer
-
Wolfgang Denk