From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 10 Apr 2012 23:55:12 +0200 Subject: [U-Boot] [PATCH v2] mkenvimage: Fix compiler warning In-Reply-To: <1333703707-10193-1-git-send-email-dirk.behme@gmail.com> References: <1333703707-10193-1-git-send-email-dirk.behme@gmail.com> Message-ID: <20120410235512.1fcd49fe@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 6 Apr 2012 11:15:07 +0200 Dirk Behme wrote: > From: Dirk Behme > > Fix the compiler warning > > mkenvimage.c: In function ?main?: > mkenvimage.c:218: warning: format ?%ld? expects type ?long int?, but argument 3 has type ?unsigned int? > mkenvimage.c:226: warning: format ?%ld? expects type ?long int?, but argument 3 has type ?unsigned int? > > introduced with the commit > > mkenvimage: Use mmap() when reading from a regular file > 6ee39f8055680654f9cc97b98dcce9588f1ab71e > > Signed-off-by: Dirk Behme > CC: David Wagner > CC: Anatolij Gustschin > CC: Mike Frysinger > --- > Changes in v2: Use size_t formatter '%zu'. > > tools/mkenvimage.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) GCC 4.6.1 and GCC 4.2.2 didn't warn here. But I've applied this patch since it fixes warnings for you. Thanks! Applied to u-boot-staging/agust at denx.de. Thanks, Anatolij