public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mmc: show mmc capacity using print_size
@ 2011-01-04 11:04 Minkyu Kang
  2011-02-25  8:06 ` Minkyu Kang
  0 siblings, 1 reply; 2+ messages in thread
From: Minkyu Kang @ 2011-01-04 11:04 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
---
 common/cmd_mmc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 4323f76..6166749 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -104,7 +104,8 @@ static void print_mmcinfo(struct mmc *mmc)
 			(mmc->version >> 4) & 0xf, mmc->version & 0xf);
 
 	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);
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] mmc: show mmc capacity using print_size
  2011-01-04 11:04 [U-Boot] [PATCH] mmc: show mmc capacity using print_size Minkyu Kang
@ 2011-02-25  8:06 ` Minkyu Kang
  0 siblings, 0 replies; 2+ messages in thread
From: Minkyu Kang @ 2011-02-25  8:06 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang and Andy

Please check this patch.

On 4 January 2011 20:04, Minkyu Kang <mk7.kang@samsung.com> wrote:
> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
> ---
> ?common/cmd_mmc.c | ? ?3 ++-
> ?1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
> index 4323f76..6166749 100644
> --- a/common/cmd_mmc.c
> +++ b/common/cmd_mmc.c
> @@ -104,7 +104,8 @@ static void print_mmcinfo(struct mmc *mmc)
> ? ? ? ? ? ? ? ? ? ? ? ?(mmc->version >> 4) & 0xf, mmc->version & 0xf);
>
> ? ? ? ?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);
> ?}
> --
> 1.7.1

Thanks
-- 
from. prom.
www.promsoft.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-25  8:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 11:04 [U-Boot] [PATCH] mmc: show mmc capacity using print_size Minkyu Kang
2011-02-25  8:06 ` Minkyu Kang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox