diff mbox series

tools/imximage: fix DCD Blocks message output order

Message ID 20200728113236.14717-1-matthias.schiffer@ew.tq-group.com
State Accepted
Commit 0c2b03cacee01f315f908b712cb2952e427394a3
Delegated to: Stefano Babic
Headers show
Series tools/imximage: fix DCD Blocks message output order | expand

Commit Message

Matthias Schiffer July 28, 2020, 11:32 a.m. UTC
The correct order is load address, offset, length. The order was
accidentally switched a while ago; make it match the HAB Blocks output and
what CST expects again.

Fixes: e97bdfa5da70 ("tools/imximage: share DCD information via Kconfig")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
---
 tools/imximage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Aug. 18, 2020, 12:34 p.m. UTC | #1
> The correct order is load address, offset, length. The order was
> accidentally switched a while ago; make it match the HAB Blocks output and
> what CST expects again.
> Fixes: e97bdfa5da70 ("tools/imximage: share DCD information via Kconfig")
> Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/tools/imximage.c b/tools/imximage.c
index d7edd3c52f..5c23fba3b1 100644
--- a/tools/imximage.c
+++ b/tools/imximage.c
@@ -529,7 +529,7 @@  static void print_hdr_v2(struct imx_header *imx_hdr)
 			       (uint32_t)fhdr_v2->self, 0,
 			       (uint32_t)(fhdr_v2->csf - fhdr_v2->self));
 			printf("DCD Blocks:   0x%08x 0x%08x 0x%08x\n",
-			       offs, CONFIG_IMX_DCD_ADDR, be16_to_cpu(dcdlen));
+			       CONFIG_IMX_DCD_ADDR, offs, be16_to_cpu(dcdlen));
 		}
 	} else {
 		imx_header_v2_t *next_hdr_v2;