disk: part: Handle blkmap device in print_part_header()

Print out the blkmap device type when showing partition header for
a blkmap device.

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:45 +08:00 committed by Tom Rini
parent 893e67883b
commit 5fdd48066e

View file

@ -336,6 +336,9 @@ static void print_part_header(const char *type, struct blk_desc *desc)
case UCLASS_EFI_MEDIA: case UCLASS_EFI_MEDIA:
puts("EFI"); puts("EFI");
break; break;
case UCLASS_BLKMAP:
puts("BLKMAP");
break;
default: default:
printf("UNKNOWN(%d)", desc->uclass_id); printf("UNKNOWN(%d)", desc->uclass_id);
break; break;