]> git.sur5r.net Git - u-boot/commitdiff
cmd: booti: fix invalid image address in debug message
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Feb 2018 03:10:02 +0000 (12:10 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 14 Feb 2018 04:24:22 +0000 (23:24 -0500)
With commit 6808ef9ac2a6 ("move booti_setup to arch/arm/lig/image.c"),
images->ep has not been set at this point.

Fixes: 6808ef9ac2a6 ("move booti_setup to arch/arm/lig/image.c")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Bin Chen <bin.chen@linaro.org>
cmd/booti.c

index 0be786cb6bfb4c08b34e54973849344915d7e910..fff936976355e1f261eca5eb7ae9ce49d994691f 100644 (file)
@@ -37,8 +37,7 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc,
                                load_addr);
        } else {
                ld = simple_strtoul(argv[0], NULL, 16);
-               debug("*  kernel: cmdline image address = 0x%08lx\n",
-                       images->ep);
+               debug("*  kernel: cmdline image address = 0x%08lx\n", ld);
        }
 
        ret = booti_setup(ld, &relocated_addr, &image_size);