]> git.sur5r.net Git - u-boot/commitdiff
spl: use panic_str instead of panic
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 4 Dec 2015 22:27:35 +0000 (23:27 +0100)
committerSimon Glass <sjg@chromium.org>
Mon, 14 Dec 2015 00:07:30 +0000 (17:07 -0700)
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>
common/spl/spl.c

index 7a393dc078291d3fec81b88cf4c17cebaa4e27d1..6e6dee7ec9b1d9b8ccd2cee17239557c88a28250 100644 (file)
@@ -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;