From patchwork Thu Sep 8 12:10:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 113894 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 76A54B6F93 for ; Thu, 8 Sep 2011 22:10:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EA57F281C8; Thu, 8 Sep 2011 14:10:46 +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 XHpupcbPxbGr; Thu, 8 Sep 2011 14:10:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 804F7281CC; Thu, 8 Sep 2011 14:10:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A86128123 for ; Thu, 8 Sep 2011 14:10:29 +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 XTxrXaJwUJ2i for ; Thu, 8 Sep 2011 14:10:26 +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 73111281C0 for ; Thu, 8 Sep 2011 14:10:25 +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 F32DF18016DE for ; Thu, 8 Sep 2011 14:10:24 +0200 (CEST) X-Auth-Info: tc2rjWTYEgtSSkqKTYWGj02w3EZDo/M7PZ3NdDvskYo= 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 37BD91C001A0 for ; Thu, 8 Sep 2011 14:10:25 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id 15679C000A96 for ; Thu, 8 Sep 2011 14:10:25 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id EF35F1408769; Thu, 8 Sep 2011 14:10:24 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Thu, 8 Sep 2011 14:10:18 +0200 Message-Id: <1315483822-25399-3-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1315483822-25399-1-git-send-email-wd@denx.de> References: <1315483822-25399-1-git-send-email-wd@denx.de> Subject: [U-Boot] [PATCH 2/6] YAFFS2: fs/yaffs2/yaffscfg.c - fix build warnings 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 Fix these: yaffscfg.c: In function 'cmd_yaffs_mread_file': yaffscfg.c:316: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'char *' yaffscfg.c: In function 'cmd_yaffs_ls': yaffscfg.c:371: warning: format '%7d' expects type 'int', but argument 3 has type 'off_t' Signed-off-by: Wolfgang Denk --- fs/yaffs2/yaffscfg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/yaffs2/yaffscfg.c b/fs/yaffs2/yaffscfg.c index 16e84a4..01399ea 100644 --- a/fs/yaffs2/yaffscfg.c +++ b/fs/yaffs2/yaffscfg.c @@ -313,7 +313,7 @@ void cmd_yaffs_mread_file(char *fn, char *addr) yaffs_stat(fn,&s); - printf ("Copy %s to 0x%08x... ", fn, addr); + printf ("Copy %s to 0x%p... ", fn, addr); h = yaffs_open(fn, O_RDWR,0); if(h<0) { @@ -368,7 +368,7 @@ void cmd_yaffs_ls(const char *mountpt, int longlist) { sprintf(tempstr, "%s/%s", mountpt, de->d_name); yaffs_stat(tempstr, &stat); - printf("%-25s\t%7d\n",de->d_name, stat.st_size); + printf("%-25s\t%7ld\n",de->d_name, stat.st_size); } else {