From: Philippe De Muyter Date: Mon, 21 Sep 2009 22:28:02 +0200 Subject: [U-Boot] [PATCH MAKEALL coldfire] fix tools/kwbimage.c format warning In-Reply-To: <20090921201621.BAFA2832E864@gemini.denx.de> References: <20090921194908.GA31132@frolo.macqel> <20090921200644.GA6670@frolo.macqel> <20090921201621.BAFA2832E864@gemini.denx.de> Message-ID: <20090921202802.GB12703@frolo.macqel> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 21, 2009 at 10:16:21PM +0200, Wolfgang Denk wrote: > Dear Philippe De Muyter, > > In message <20090921200644.GA6670@frolo.macqel> you wrote: > > Hi all, > > > > This fixes the following warnings when running MAKEALL for coldfire : > > tools/kwbimage.c: In function #kwbimage_checksum32#: > > tools/kwbimage.c:135: warning: format #%ld# expects type #long int#, but argument 4 has type #unsigned int# > > > > Signed-off-by: Philippe De Muyter > > > > diff -ru a/tools/kwbimage.c b/tools/kwbimage.c > > --- a/tools/kwbimage.c 2009-09-17 23:28:31.000000000 +0200 > > +++ b/tools/kwbimage.c 2009-09-21 19:40:19.000000000 +0200 > > @@ -131,7 +131,7 @@ > > return 0; > > > > if (len % sizeof(uint32_t)) { > > - printf ("Error:%s[%d] - lenght is not in multiple of %ld\n", > > + printf ("Error:%s[%d] - length is not in multiple of %u\n", > > __FUNCTION__, len, sizeof(uint32_t)); > > Seems you are using old code. This has long been fixed (using a %zu > format). That's surprising. I got a tarball last friday (3 days ago) using the snapshot button on the gitweb interface : u-boot-3dc5e00454a58499d4f4c790b38036b0e873747e.tar.gz Best regards Philippe