Skip to content
Snippets Groups Projects
Commit 4363de63 authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Simon Glass
Browse files

spl: use panic_str instead of panic


For a simple static string, use panic_str() which prevents calling
printf needlessly.

Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 717f8845
No related branches found
No related tags found
No related merge requests found
...@@ -452,7 +452,7 @@ ulong spl_relocate_stack_gd(void) ...@@ -452,7 +452,7 @@ ulong spl_relocate_stack_gd(void)
#ifdef CONFIG_SPL_SYS_MALLOC_SIMPLE #ifdef CONFIG_SPL_SYS_MALLOC_SIMPLE
if (CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN) { if (CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN) {
if (!(gd->flags & GD_FLG_SPL_INIT)) if (!(gd->flags & GD_FLG_SPL_INIT))
panic("spl_init must be called before heap reloc"); panic_str("spl_init must be called before heap reloc");
ptr -= CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN; ptr -= CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN;
gd->malloc_base = ptr; gd->malloc_base = ptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment