From patchwork Thu Sep 8 12:10:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 113893 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 5AF72B6F93 for ; Thu, 8 Sep 2011 22:10:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8E019281A8; Thu, 8 Sep 2011 14:10:37 +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 ColcTx6+1Tpg; Thu, 8 Sep 2011 14:10:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6B76C281AD; Thu, 8 Sep 2011 14:10:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B3394281CF for ; Thu, 8 Sep 2011 14:10:28 +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 KkchfPjpxuYV 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 D3F92281C4 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 E9D4018016B1 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 1F7741C001A0 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 F2E04C014D65 for ; Thu, 8 Sep 2011 14:10:24 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id E6CA51408768; 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:17 +0200 Message-Id: <1315483822-25399-2-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 1/6] YAFFS2: cmd_yaffs2.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: cmd_yaffs2.c: In function 'do_ywr': cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'ulong' cmd_yaffs2.c:69: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'ulong' Signed-off-by: Wolfgang Denk --- common/cmd_yaffs2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_yaffs2.c b/common/cmd_yaffs2.c index 7c01ea2..0e22d90 100644 --- a/common/cmd_yaffs2.c +++ b/common/cmd_yaffs2.c @@ -66,7 +66,7 @@ int do_ywr (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ulong value = simple_strtoul(argv[2], NULL, 16); ulong numValues = simple_strtoul(argv[3], NULL, 16); - printf ("Writing value (%x) %x times to %s... ", value, numValues, filename); + printf ("Writing value (%lx) %lx times to %s... ", value, numValues, filename); cmd_yaffs_write_file(filename,value,numValues);