diff options
author | Simon Glass <sjg@chromium.org> | 2022-08-11 19:35:00 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-16 11:05:16 -0400 |
commit | ef4b66bcd189e0db142e257cea1d225833cdc3b1 (patch) | |
tree | cf6f2fa2df48963cd8cfcec7781affef7ee849c9 | |
parent | e33a5c6be55e7c012b2851f9bdf90e7f607e72bf (diff) | |
download | u-boot-ef4b66bcd189e0db142e257cea1d225833cdc3b1.tar.gz u-boot-ef4b66bcd189e0db142e257cea1d225833cdc3b1.tar.bz2 u-boot-ef4b66bcd189e0db142e257cea1d225833cdc3b1.zip |
disk: Handle UCLASS_EFI_MEDIA in dev_print()
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>
-rw-r--r-- | disk/part.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c index 75aff7eba5..5705c229d5 100644 --- a/disk/part.c +++ b/disk/part.c @@ -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; |