aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2020-06-12 15:41:21 +0300
committerTom Rini <trini@konsulko.com>2020-07-17 08:51:01 -0400
commit9b83f9c594af6033dd507c3ecad1231421063949 (patch)
tree084443cb4397c251aab37fb81bf6849a7187bb30 /cmd
parentfbde7589ce3049318a0e9495db72472af03704af (diff)
downloadu-boot-9b83f9c594af6033dd507c3ecad1231421063949.zip
u-boot-9b83f9c594af6033dd507c3ecad1231421063949.tar.gz
u-boot-9b83f9c594af6033dd507c3ecad1231421063949.tar.bz2
cmd: booti: convert the debug print about image move to printf
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 <t-kristo@ti.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/booti.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/booti.c b/cmd/booti.c
index bfc0742..76d1255 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);
}