summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2015-12-04 23:27:35 +0100
committerSimon Glass <sjg@chromium.org>2015-12-13 17:07:30 -0700
commit4363de63a88f3e9490cb46ce4c92e7c2d2497ba8 (patch)
treedc10aa913149753d76818ba095d0c368ad67c85f /common
parent717f8845ac4b25cfd329d161423622433dfeb990 (diff)
downloadblackbird-obmc-uboot-4363de63a88f3e9490cb46ce4c92e7c2d2497ba8.tar.gz
blackbird-obmc-uboot-4363de63a88f3e9490cb46ce4c92e7c2d2497ba8.zip
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>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud