diff options
author | Shruti Kanetkar <Shruti@Freescale.com> | 2013-08-15 11:25:37 -0500 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2013-08-20 10:37:58 -0700 |
commit | 2f848f97d7b27a88135de98aae76531a6fdd44e6 (patch) | |
tree | 149900c8d86112b4e272cabb49694fa0f65fd3a9 /arch/powerpc/cpu/mpc8xxx | |
parent | bf9025662353afe3be5288ab508c8c3351691997 (diff) | |
download | u-boot-2f848f97d7b27a88135de98aae76531a6fdd44e6.tar.gz |
powerpc: Use print_size() where appropriate
Makes the startup output more consistent
Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/ddr/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/main.c b/arch/powerpc/cpu/mpc8xxx/ddr/main.c index 9f4f25343b..842bf1989e 100644 --- a/arch/powerpc/cpu/mpc8xxx/ddr/main.c +++ b/arch/powerpc/cpu/mpc8xxx/ddr/main.c @@ -683,7 +683,8 @@ phys_size_t fsl_ddr_sdram(void) #if !defined(CONFIG_PHYS_64BIT) /* Check for 4G or more. Bad. */ if (total_memory >= (1ull << 32)) { - printf("Detected %lld MB of memory\n", total_memory >> 20); + puts("Detected "); + print_size(total_memory, " of memory\n"); printf(" This U-Boot only supports < 4G of DDR\n"); printf(" You could rebuild it with CONFIG_PHYS_64BIT\n"); printf(" "); /* re-align to match init_func_ram print */ |