diff options
author | Bin Meng <bmeng@tinylab.org> | 2023-09-26 11:43:44 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-10 23:30:44 +0300 |
commit | 893e67883b0889b4cc4090664117e5b312ac7ff6 (patch) | |
tree | 29d8582d9fb68576a4ef07833fd7a0603670f06e /disk | |
parent | 94a846298ed5e0399099977b5b11f13d46c22f3f (diff) | |
download | u-boot-893e67883b0889b4cc4090664117e5b312ac7ff6.tar.xz |
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 <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |