mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
mmc: show mmc capacity using print_size
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
d52ebf1022
commit
940e078297
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ static void print_mmcinfo(struct mmc *mmc)
|
||||||
(mmc->version >> 4) & 0xf, mmc->version & 0xf);
|
(mmc->version >> 4) & 0xf, mmc->version & 0xf);
|
||||||
|
|
||||||
printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No");
|
printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No");
|
||||||
printf("Capacity: %lld\n", mmc->capacity);
|
puts("Capacity: ");
|
||||||
|
print_size(mmc->capacity, "\n");
|
||||||
|
|
||||||
printf("Bus Width: %d-bit\n", mmc->bus_width);
|
printf("Bus Width: %d-bit\n", mmc->bus_width);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue