Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save carlocaione/b93cfd9ee71e07fcf68d5c02256ff0fa to your computer and use it in GitHub Desktop.
Save carlocaione/b93cfd9ee71e07fcf68d5c02256ff0fa to your computer and use it in GitHub Desktop.
diff --git a/arch/arm/mach-rockchip/sdram_common.c b/arch/arm/mach-rockchip/sdram_common.c
index 6bad537af6..d21b85dc56 100644
--- a/arch/arm/mach-rockchip/sdram_common.c
+++ b/arch/arm/mach-rockchip/sdram_common.c
@@ -68,8 +68,8 @@ int dram_init(void)
return ret;
}
gd->ram_size = ram.size;
- debug("SDRAM base=%lx, size=%lx\n",
- (unsigned long)ram.base, (unsigned long)ram.size);
+ debug("SDRAM base=%lx, size=%llx\n",
+ (unsigned long)ram.base, (unsigned long long)ram.size);
return 0;
}
diff --git a/common/board_f.c b/common/board_f.c
index 88d770071c..4052e5158f 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -266,7 +266,7 @@ static int setup_dest_addr(void)
/*
* Ram is setup, size stored in gd !!
*/
- debug("Ram size: %08lX\n", (ulong)gd->ram_size);
+ debug("Ram size: %llX\n", (unsigned long long)gd->ram_size);
#if defined(CONFIG_SYS_MEM_TOP_HIDE)
/*
* Subtract specified amount of memory to hide so that it won't
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment