From: Sjoerd Simons Date: Fri, 4 Dec 2015 22:27:35 +0000 (+0100) Subject: spl: use panic_str instead of panic X-Git-Tag: v2016.01-rc3~20^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4363de63a88f3e9490cb46ce4c92e7c2d2497ba8;p=u-boot 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 Reviewed-by: Simon Glass --- diff --git a/common/spl/spl.c b/common/spl/spl.c index 7a393dc078..6e6dee7ec9 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -452,7 +452,7 @@ ulong spl_relocate_stack_gd(void) #ifdef CONFIG_SPL_SYS_MALLOC_SIMPLE if (CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN) { 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; gd->malloc_base = ptr;