From 893e67883b0889b4cc4090664117e5b312ac7ff6 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Tue, 26 Sep 2023 16:43:44 +0800 Subject: [PATCH] disk: part: Print out the unknown device uclass id It's helpful to output the device uclass id for unknown devices during the debugging process. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- disk/part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/part.c b/disk/part.c index 72241b7b23..9127515400 100644 --- a/disk/part.c +++ b/disk/part.c @@ -337,7 +337,7 @@ static void print_part_header(const char *type, struct blk_desc *desc) puts("EFI"); break; default: - puts("UNKNOWN"); + printf("UNKNOWN(%d)", desc->uclass_id); break; } printf (" device %d -- Partition Type: %s\n\n", -- 2.39.5