Skip to contentSkip to conversation

mmc: show mmc capacity using print_size

PATCH New Minkyu Kang 2 participants 2 messages Jan 4, 2011 – Feb 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: show mmc capacity using print_size

---
 common/cmd_mmc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
common/cmd_mmc.c +2 -1
index 4323f76..6166749 100644
@@ -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);
 }
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 mmc: show mmc capacity using print_size

Dear Wolfgang and Andy

Please check this patch.

Quoted 20 lines · Minkyu Kang

---
?common/cmd_mmc.c | ? ?3 ++-
?1 files changed, 2 insertions(+), 1 deletions(-)

common/cmd_mmc.c +2 -2
index 4323f76..6166749 100644
@@ -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);
 ?}
--
Quoted 1 line

1.7.1

Thanks

Signature · 2 lines
from. prom.
www.promsoft.net