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>
This commit is contained in:
Bin Meng 2023-09-26 16:43:44 +08:00 committed by Tom Rini
parent 94a846298e
commit 893e67883b

View file

@ -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",