From patchwork Fri Sep 9 22:43:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 114144 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8A21DB71AD for ; Sat, 10 Sep 2011 08:43:48 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 380AE2840E; Sat, 10 Sep 2011 00:43:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id adfGXvsnpJZJ; Sat, 10 Sep 2011 00:43:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9056C283ED; Sat, 10 Sep 2011 00:43:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F187D283ED for ; Sat, 10 Sep 2011 00:43:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id at9-3YBVq5TL for ; Sat, 10 Sep 2011 00:43:40 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTP id 5D24F283E8 for ; Sat, 10 Sep 2011 00:43:38 +0200 (CEST) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 25732188B59A; Sat, 10 Sep 2011 00:43:38 +0200 (CEST) X-Auth-Info: A2JLkZw70dfiKrLMeMCdD2h4prQSAbiYCi8GlLWo/9M= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 83A331C000B3; Sat, 10 Sep 2011 00:43:38 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id 695C5C000A96; Sat, 10 Sep 2011 00:43:38 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id 55E00140876D; Sat, 10 Sep 2011 00:43:38 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Sat, 10 Sep 2011 00:43:36 +0200 Message-Id: <1315608216-7425-1-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1315227837-17714-1-git-send-email-Bastian.Ruppert@Sewerin.de> References: <1315227837-17714-1-git-send-email-Bastian.Ruppert@Sewerin.de> Cc: Bastian Ruppert Subject: [U-Boot] [PATCH] UBIFS: fix warning: format '%lX' expects type 'long unsigned int' X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Commit 46d7274 "UBIFS: Change ubifsload to set the filesize variable" introduced the follwing compiler warning: ubifs.c: In function 'ubifs_load': ubifs.c:742: warning: format '%lX' expects type 'long unsigned int', but argument 3 has type 'u32' Signed-off-by: Wolfgang Denk Cc: Bastian Ruppert --- fs/ubifs/ubifs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index 2e6313a..604eb8f 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -739,7 +739,7 @@ int ubifs_load(char *filename, u32 addr, u32 size) if (err) printf("Error reading file '%s'\n", filename); else { - sprintf(buf, "%lX", size); + sprintf(buf, "%X", size); setenv("filesize", buf); printf("Done\n"); }