Message ID | 1449268061-805-2-git-send-email-sjoerd.simons@collabora.co.uk |
---|---|
State | Accepted |
Delegated to: | Simon Glass |
Headers | show |
On 4 December 2015 at 15:27, Sjoerd Simons <sjoerd.simons@collabora.co.uk> wrote: > For a simple static string, use panic_str() which prevents calling > printf needlessly. > > Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> > --- > > common/spl/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org>
On 6 December 2015 at 09:45, Simon Glass <sjg@chromium.org> wrote: > > On 4 December 2015 at 15:27, Sjoerd Simons > <sjoerd.simons@collabora.co.uk> wrote: > > For a simple static string, use panic_str() which prevents calling > > printf needlessly. > > > > Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> > > --- > > > > common/spl/spl.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org> Tested on firefly: Tested-by: Simon Glass <sjg@chromium.org>
Applied to u-boot-rockchip, thanks!
diff --git a/common/spl/spl.c b/common/spl/spl.c index 7a393dc..6e6dee7 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;
For a simple static string, use panic_str() which prevents calling printf needlessly. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> --- common/spl/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)