mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-25 08:03:18 +00:00
spl: use panic_str instead of panic
For a simple static string, use panic_str() which prevents calling printf needlessly. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
717f8845ac
commit
4363de63a8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue