Skip to contentSkip to conversation

print_size: Enable printing of >= 4GB

PATCH New Stefan Roese 2 participants 3 messages Jul 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 print_size: Enable printing of >= 4GB

---
 lib_generic/display_options.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib_generic/display_options.c +1 -1
index a52fa04..99aa443 100644
@@ -45,7 +45,7 @@ int display_options (void)
 void print_size (phys_size_t size, const char *s)
 {
 	ulong m, n;
-	ulong d = 1 << 20;		/* 1 MB */
+	phys_size_t d = 1 << 20;		/* 1 MB */
 	char  c = 'M';
 
 	if (size < d) {			/* print in kB */
Signature · 1 line
1.5.6.2
#1 lore raw

PATCH 1/1 print_size: Enable printing of >= 4GB

Stefan,

As we discussed on IRC, I'm about to push a patch that supersedes this one and allows printing to report "GB" instead of MB for large RAM sizes.

Cheers,
B

Quoted 32 lines · Stefan Roese

---
lib_generic/display_options.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
lib_generic/ renamed from lib_generic/display_options.c +0 -0

display_options.c
index a52fa04..99aa443 100644

lib_generic/display_options.c +1 -1
@@ -45,7 +45,7 @@ int display_options (void)
 void print_size (phys_size_t size, const char *s)
 {
 	ulong m, n;
-	ulong d = 1 << 20;		/* 1 MB */
+	phys_size_t d = 1 << 20;		/* 1 MB */
 	char  c = 'M';
 
 	if (size < d) {			/* print in kB */
Signature · 12 lines
1.5.6.2


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
#2 lore raw

PATCH 1/1 print_size: Enable printing of >= 4GB

Becky,

Quoted 3 lines · Becky Bruce

As we discussed on IRC, I'm about to push a patch that supersedes this one and allows printing to report "GB" instead of MB for large RAM sizes.

Great, thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================