projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a4117
)
mmc: show mmc capacity as MiB, GiB
author
Minkyu Kang
<mk7.kang@samsung.com>
Mon, 13 Dec 2010 01:54:05 +0000
(10:54 +0900)
committer
Minkyu Kang
<mk7.kang@samsung.com>
Mon, 13 Dec 2010 01:54:05 +0000
(10:54 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
common/cmd_mmc.c
patch
|
blob
|
history
diff --git
a/common/cmd_mmc.c
b/common/cmd_mmc.c
index
24bbd94
..
d563597
100644
(file)
--- a/
common/cmd_mmc.c
+++ b/
common/cmd_mmc.c
@@
-107,11
+107,8
@@
static void print_mmcinfo(struct mmc *mmc)
mmc->check_rev? "+":"");
printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No");
-
- if (mmc->high_capacity)
- printf("Capacity: %lld MByte\n", mmc->capacity >> 20);
- else
- printf("Capacity: %lld\n", mmc->capacity);
+ puts("Capacity: ");
+ print_size(mmc->capacity, "\n");
printf("Bus Width: %d-bit\n", mmc->bus_width);
}