From: Wolfgang Denk Date: Tue, 15 Sep 2009 21:27:57 +0200 Subject: [U-Boot] [PATCH] kwbimage.c: Fix compile warning when building on 64 bit systems (again) In-Reply-To: <1253002223-16773-1-git-send-email-sr@denx.de> References: <1253002223-16773-1-git-send-email-sr@denx.de> Message-ID: <1253042877-10293-1-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Commit 51003b89 attempted to fix a build problem on 64 bit systems, but just turned it into a build problem on 32 bit systems (silly me). Now do the Right Thing (TM) and use a "%zu" printf format. Signed-off-by: Wolfgang Denk --- tools/kwbimage.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index ee067cb..b555553 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -131,7 +131,7 @@ static uint32_t kwbimage_checksum32 (uint32_t *start, uint32_t len, uint32_t csu return 0; if (len % sizeof(uint32_t)) { - printf ("Error:%s[%d] - lenght is not in multiple of %ld\n", + printf ("Error:%s[%d] - lenght is not in multiple of %zu\n", __FUNCTION__, len, sizeof(uint32_t)); return 0; } -- 1.6.0.6