[PATCH 14/15] disk: part: Print out the unknown device uclass id
Bin Meng
bmeng at tinylab.org
Tue Sep 26 10:43:44 CEST 2023
It's helpful to output the device uclass id for unknown devices
during the debugging process.
Signed-off-by: Bin Meng <bmeng at 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
More information about the U-Boot
mailing list