]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk: Handle UCLASS_EFI_MEDIA in dev_print()
authorSimon Glass <sjg@chromium.org>
Fri, 12 Aug 2022 01:35:00 +0000 (19:35 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 16 Sep 2022 15:05:16 +0000 (11:05 -0400)
This is currently missing. Add it.

Fix the code style for the function while we are here.

Suggested-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part.c

index 75aff7eba5ac796ceced89f661dcb6965a2d42c6..5705c229d598267858dbb0f215bcf935905ff7ab 100644 (file)
@@ -111,7 +111,7 @@ static lba512_t lba512_muldiv(lba512_t block_count, lba512_t mul_by,
        return bc_quot * mul_by + ((bc_rem * mul_by) >> right_shift);
 }
 
-void dev_print (struct blk_desc *dev_desc)
+void dev_print(struct blk_desc *dev_desc)
 {
        lba512_t lba512; /* number of blocks if 512bytes block size */
 
@@ -148,6 +148,9 @@ void dev_print (struct blk_desc *dev_desc)
        case UCLASS_VIRTIO:
                printf("%s VirtIO Block Device\n", dev_desc->vendor);
                break;
+       case UCLASS_EFI_MEDIA:
+               printf("EFI media Block Device %d\n", dev_desc->devnum);
+               break;
        case UCLASS_INVALID:
                puts("device type unknown\n");
                return;