Skip to contentSkip to conversation

tools/imximage: fix DCD Blocks message output order

PATCH New Matthias Schiffer 2 participants 2 messages Jul 28, 2020 – Aug 18, 2020 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/imximage: fix DCD Blocks message output order

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")
---
 tools/imximage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/imximage.c +1 -1
index d7edd3c52f..5c23fba3b1 100644
@@ -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;
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 tools/imximage: fix DCD Blocks message output order

Quoted 5 lines

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")

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================