From patchwork Tue Jul 28 11:32:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 1337756 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=OqysrlFK; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BGF2L0lvJz9sSd for ; Tue, 28 Jul 2020 21:34:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E97CF82395; Tue, 28 Jul 2020 13:34:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=tq-group.com header.i=@tq-group.com header.b="OqysrlFK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8D1F823C5; Tue, 28 Jul 2020 13:32:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mx1.tq-group.com (mx1.tq-group.com [62.157.118.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D31B981C17 for ; Tue, 28 Jul 2020 13:32:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=matthias.schiffer@ew.tq-group.com IronPort-SDR: AwOeis5FaywVC+V8WCf5Rhbsh8fxbAUy5BUfHxi0FETwVyvEwq/KRd9gSqgu0Kudvu+FfFEOo5 LSCpo6XL9dO33UzQWD9ihTJTwDZ2VvhhFweGaeS5a6VxVal3LOmsK9m2SXbRxNvDGpKqOo04lc YwdIXRcQfiIUMpcMqeLMYsN62vzHJyLHfrhZdxfmmRzjdkODpJIXmw5K8luhm6/lmFW/I8FOMF AVyXRbHWTE3CoUtFNQULywlZfwhgTyxtC1n33eg6cVZ+K2z6KYOK696Wf4UJMoqNFCNBBHDdd1 e0k= X-IronPort-AV: E=Sophos;i="5.75,406,1589234400"; d="scan'208";a="13262310" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 28 Jul 2020 13:32:41 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 28 Jul 2020 13:32:41 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 28 Jul 2020 13:32:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1595935961; x=1627471961; h=from:to:cc:subject:date:message-id; bh=WA985jOiG/Yu51uVf08xgMVtqHC2dN8ynW/utICiNng=; b=OqysrlFKol3GkoqwPgIT534ZY3H+uc5mTVFPs2TqcBTdGva66h+4LpZC FcJzeqABwysbq9/i4jgwkAGE+LkLLrZYw/UD1E1OR60LIs+M6garKaPS9 OdAPFsxajdYtypbipQ652c6Jbzlw61eW1PAudzMl9+me4e9pe3+2PfKW5 80eQaHFOSOYNF2iQkNbR/kfcyVmxFsww2vaiRgp+MDeQcjqwGm6XCkXuj jjEaGgcoFy7uKLrD8JfAm4oBFjccY1bVa9O5GQ8Sv4i7LmyZx1Xt89F5P hQf+gmg2vRYUgscswNn7VY9Ig1l3jooiykyZAOziBk+vJFnKWf+PFt8oG Q==; IronPort-SDR: ypc0qc4/ucKMPNmCySorjsG5eUK09otkaDQ1FWeQ1CyGkURPdi25zrKHbXrfepu7zI1dwiWYVs trBAMFFLchBiD53/iHGK4kBh+bSclm+SiMyq5w4FYRyNtEr1qpB6acMbSLqkibTCvJO7L4LHva GoMcz83TJvCSil3oVrB5Tfo2Wz56uRhPAHm+g0DtRFxmnS3fx7TowAJ/YUxavIcen/YHgOA5cQ 69a1DB7FF02Gki8AtPY7WpCDh2Enj6X0YCUcwyAlmRBaqSsUGRhwsq2d9+ThdlgeYb0baQeN/E PCo= X-IronPort-AV: E=Sophos;i="5.75,406,1589234400"; d="scan'208";a="13262309" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 28 Jul 2020 13:32:41 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.49.26]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 19428280065; Tue, 28 Jul 2020 13:32:41 +0200 (CEST) From: Matthias Schiffer To: u-boot@lists.denx.de Cc: Matthias Schiffer Subject: [PATCH] tools/imximage: fix DCD Blocks message output order Date: Tue, 28 Jul 2020 13:32:36 +0200 Message-Id: <20200728113236.14717-1-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Tue, 28 Jul 2020 13:34:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean 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 --- tools/imximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;