mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 15:01:27 +02:00
common/board_f: fix gcc warning on MIPS64
This fixes following warning when compiled with MIPS64 common/board_f.c: In function 'display_text_info': common/board_f.c:150:2: warning: format '%X' expects argument i of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] debug("U-Boot code: %08X -> %08lX BSS: -> %08lX\n", Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
666ba8444e
commit
9fdee7d730
@@ -142,17 +142,19 @@ static int init_baud_rate(void)
|
|||||||
static int display_text_info(void)
|
static int display_text_info(void)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_SANDBOX
|
#ifndef CONFIG_SANDBOX
|
||||||
ulong bss_start, bss_end;
|
ulong bss_start, bss_end, text_base;
|
||||||
|
|
||||||
bss_start = (ulong)&__bss_start;
|
bss_start = (ulong)&__bss_start;
|
||||||
bss_end = (ulong)&__bss_end;
|
bss_end = (ulong)&__bss_end;
|
||||||
|
|
||||||
debug("U-Boot code: %08X -> %08lX BSS: -> %08lX\n",
|
|
||||||
#ifdef CONFIG_SYS_TEXT_BASE
|
#ifdef CONFIG_SYS_TEXT_BASE
|
||||||
CONFIG_SYS_TEXT_BASE, bss_start, bss_end);
|
text_base = CONFIG_SYS_TEXT_BASE;
|
||||||
#else
|
#else
|
||||||
CONFIG_SYS_MONITOR_BASE, bss_start, bss_end);
|
text_base = CONFIG_SYS_MONITOR_BASE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
debug("U-Boot code: %08lX -> %08lX BSS: -> %08lX\n",
|
||||||
|
text_base, bss_start, bss_end);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MODEM_SUPPORT
|
#ifdef CONFIG_MODEM_SUPPORT
|
||||||
|
Reference in New Issue
Block a user