]> Git Repo - J-u-boot.git/commitdiff
spl: fix debug print in spl_common_init()
authorSimon Goldschmidt <[email protected]>
Mon, 13 Aug 2018 09:24:05 +0000 (11:24 +0200)
committerTom Rini <[email protected]>
Mon, 20 Aug 2018 11:21:28 +0000 (07:21 -0400)
spl_common_init() debug-prints "spl_early_init()\n" but it is
called both from spl_early_init() and spl_init().

Fix this by moving the debug() statement to the calling functions
which now print their name.

Signed-off-by: Simon Goldschmidt <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
common/spl/spl.c

index eda84d0c74cd5eadfdb50edcfd7229c50865d795..19508c71685d82bd425c6912c32c79ce4085ad44 100644 (file)
@@ -317,8 +317,6 @@ static int spl_common_init(bool setup_malloc)
 {
        int ret;
 
-       debug("spl_early_init()\n");
-
 #if CONFIG_VAL(SYS_MALLOC_F_LEN)
        if (setup_malloc) {
 #ifdef CONFIG_MALLOC_F_ADDR
@@ -366,6 +364,8 @@ int spl_early_init(void)
 {
        int ret;
 
+       debug("%s\n", __func__);
+
        ret = spl_common_init(true);
        if (ret)
                return ret;
@@ -380,6 +380,8 @@ int spl_init(void)
        bool setup_malloc = !(IS_ENABLED(CONFIG_SPL_STACK_R) &&
                        IS_ENABLED(CONFIG_SPL_SYS_MALLOC_SIMPLE));
 
+       debug("%s\n", __func__);
+
        if (!(gd->flags & GD_FLG_SPL_EARLY_INIT)) {
                ret = spl_common_init(setup_malloc);
                if (ret)
This page took 0.048527 seconds and 4 git commands to generate.