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

Signed-off-by: Bin Meng <bm...@tinylab.org>

---

 disk/part.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/disk/part.c b/disk/part.c
index 493e04943b..6997a89775 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -309,6 +309,9 @@ static void print_part_header(const char *type, struct 
blk_desc *dev_desc)
        case UCLASS_EFI_MEDIA:
                puts("EFI");
                break;
+       case UCLASS_BLKMAP:
+               puts("BLKMAP");
+               break;
        default:
                printf("UNKNOWN(%d)", dev_desc->uclass_id);
                break;
-- 
2.25.1

Reply via email to