[U-Boot-Users] [PATCH] print_size: Enable printing of >= 4GB
Stefan Roese
sr at denx.de
Wed Jul 9 17:35:12 CEST 2008
Signed-off-by: Stefan Roese <sr at denx.de>
---
lib_generic/display_options.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib_generic/display_options.c b/lib_generic/display_options.c
index a52fa04..99aa443 100644
--- a/lib_generic/display_options.c
+++ b/lib_generic/display_options.c
@@ -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 */
--
1.5.6.2
More information about the U-Boot
mailing list