From: Tero Kristo Date: Fri, 12 Jun 2020 15:41:21 +0300 Subject: [PATCH 4/4] cmd: booti: convert the debug print about image move to printf In-Reply-To: <20200612124121.13846-1-t-kristo@ti.com> References: <20200612124121.13846-1-t-kristo@ti.com> Message-ID: <20200612124121.13846-5-t-kristo@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Moving of the OS image may have some nasty side effects like corrupting DTB. Convert the current debug print to printf so that the relocation of the OS is always obvious to the user. Signed-off-by: Tero Kristo --- cmd/booti.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/booti.c b/cmd/booti.c index 6153b229cf..ad04ebd8c3 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -79,7 +79,8 @@ static int booti_start(struct cmd_tbl *cmdtp, int flag, int argc, /* Handle BOOTM_STATE_LOADOS */ if (relocated_addr != ld) { - debug("Moving Image from 0x%lx to 0x%lx\n", ld, relocated_addr); + printf("Moving Image from 0x%lx to 0x%lx, end=%lx\n", ld, + relocated_addr, relocated_addr + image_size); memmove((void *)relocated_addr, (void *)ld, image_size); } -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki