From patchwork Wed Aug 6 02:54:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 376849 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DCC1714009B for ; Wed, 6 Aug 2014 13:02:28 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365AbaHFDCM (ORCPT ); Tue, 5 Aug 2014 23:02:12 -0400 Received: from mail-by2lp0239.outbound.protection.outlook.com ([207.46.163.239]:5276 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750922AbaHFDCL (ORCPT ); Tue, 5 Aug 2014 23:02:11 -0400 Received: from BL2PR03MB468.namprd03.prod.outlook.com (10.141.92.27) by BL2PR03MB1140.namprd03.prod.outlook.com (10.141.183.23) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 03:02:08 +0000 Received: from BY2PR03CA052.namprd03.prod.outlook.com (10.141.249.25) by BL2PR03MB468.namprd03.prod.outlook.com (10.141.92.27) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 03:02:06 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::112) by BY2PR03CA052.outlook.office365.com (2a01:111:e400:2c5d::25) with Microsoft SMTP Server (TLS) id 15.0.995.14 via Frontend Transport; Wed, 6 Aug 2014 03:02:06 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Wed, 6 Aug 2014 03:02:04 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s7631w0A022086; Tue, 5 Aug 2014 20:02:01 -0700 From: Xiubo Li To: , CC: , , , , , Xiubo Li Subject: [PATCH] i2c: i2c-imx: Fix format warning for dev_dbg Date: Wed, 6 Aug 2014 10:54:45 +0800 Message-ID: <1407293685-7003-1-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 1.8.5 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(199002)(189002)(79102001)(50986999)(50466002)(68736004)(83322001)(19580405001)(46102001)(44976005)(6806004)(80022001)(74502001)(74662001)(87936001)(62966002)(31966008)(69596002)(19580395003)(89996001)(20776003)(76482001)(81342001)(47776003)(81542001)(77982001)(36756003)(64706001)(77156001)(4396001)(99396002)(88136002)(97736001)(50226001)(83072002)(92726001)(92566001)(93916002)(86362001)(229853001)(26826002)(104016003)(106466001)(104166001)(107046002)(102836001)(21056001)(81156004)(85852003)(105606002)(95666004)(85306004)(84676001)(48376002)(87286001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB468; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02951C14DC Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Li.Xiubo@freescale.com; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-OriginatorOrg: freescale.com Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org drivers/i2c/busses/i2c-imx.c: In function i2c_imx_probe() drivers/i2c/busses/i2c-imx.c:689:2: warning: format 0x%x expects argument of type unsigned int, but argument 4 has type resource_size_t [-Wformat=] dev_dbg(&i2c_imx->adapter.dev, "device resources from 0x%x to 0x%x\n", ^ drivers/i2c/busses/i2c-imx.c:689:2: warning: format 0x%x expects argument of type unsigned int, but argument 5 has type resource_size_t [-Wformat=] drivers/i2c/busses/i2c-imx.c:691:2: warning: format %d expects argument of type int, but argument 4 has type resource_size_t [-Wformat=] dev_dbg(&i2c_imx->adapter.dev, "allocated %d bytes at 0x%x\n", ^ drivers/i2c/busses/i2c-imx.c:691:2: warning: format 0x%x expects argument of type unsigned int, but argument 5 has type resource_size_t [-Wformat=] Signed-off-by: Xiubo Li --- drivers/i2c/busses/i2c-imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 1d7efa3..ba4ba32 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -687,9 +687,9 @@ static int i2c_imx_probe(struct platform_device *pdev) dev_dbg(&i2c_imx->adapter.dev, "claimed irq %d\n", irq); dev_dbg(&i2c_imx->adapter.dev, "device resources from 0x%x to 0x%x\n", - res->start, res->end); + (unsigned int)res->start, (unsigned int)res->end); dev_dbg(&i2c_imx->adapter.dev, "allocated %d bytes at 0x%x\n", - resource_size(res), res->start); + (unsigned int)resource_size(res), (unsigned int)res->start); dev_dbg(&i2c_imx->adapter.dev, "adapter name: \"%s\"\n", i2c_imx->adapter.name); dev_info(&i2c_imx->adapter.dev, "IMX I2C adapter registered\n");