common: android: format address with "0x%08lx"

Change-Id: Icbb0d31541fab9d66043834a28f995da8b9ab087
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-07-16 09:50:51 +08:00 committed by Jianhong Chen
parent 26e23df7b8
commit af4fa70793
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ int android_bootloader_boot_kernel(unsigned long kernel_address)
"bootm", kernel_addr_str, kernel_addr_str, fdt_addr, NULL }; "bootm", kernel_addr_str, kernel_addr_str, fdt_addr, NULL };
comp_type = env_get_ulong("os_comp", 10, 0); comp_type = env_get_ulong("os_comp", 10, 0);
sprintf(kernel_addr_str, "0x%lx", kernel_address); sprintf(kernel_addr_str, "0x%08lx", kernel_address);
if (comp_type != IH_COMP_NONE) { if (comp_type != IH_COMP_NONE) {
if (comp_type == IH_COMP_ZIMAGE && if (comp_type == IH_COMP_ZIMAGE &&