It's helpful to output the device uclass id for unknown devices
during the debugging process.

Signed-off-by: Bin Meng <bm...@tinylab.org>
---

 disk/part.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk/part.c b/disk/part.c
index eec02f5898..493e04943b 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -310,7 +310,7 @@ static void print_part_header(const char *type, struct 
blk_desc *dev_desc)
                puts("EFI");
                break;
        default:
-               puts("UNKNOWN");
+               printf("UNKNOWN(%d)", dev_desc->uclass_id);
                break;
        }
        printf (" device %d  --   Partition Type: %s\n\n",
-- 
2.25.1

Reply via email to