Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933157Ab3DGJdJ (ORCPT ); Sun, 7 Apr 2013 05:33:09 -0400 Received: from intranet.asianux.com ([58.214.24.6]:39076 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932947Ab3DGJdI (ORCPT ); Sun, 7 Apr 2013 05:33:08 -0400 X-Spam-Score: -100.8 Message-ID: <51613D37.6060901@asianux.com> Date: Sun, 07 Apr 2013 17:32:39 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: =?UTF-8?B?QmrDuHJuIE1vcms=?= CC: Mark Brown , Greg KH , "linux-kernel@vger.kernel.org" Subject: [PATCH v2] Drivers: Base: Regmap: fix warnings, use %zu instead of %d for printf format References: <5160E113.9080502@asianux.com> <8761zybtdg.fsf@nemi.mork.no> <51613B16.3030406@asianux.com> In-Reply-To: <51613B16.3030406@asianux.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1080 Lines: 30 fix warnings (with EXTRA_CFLAGS=-W): format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat] Signed-off-by: Chen Gang --- drivers/base/regmap/regcache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index d81f605..a469748 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -590,7 +590,7 @@ static int regcache_sync_block_raw_flush(struct regmap *map, const void **data, count = cur - base; - dev_dbg(map->dev, "Writing %d bytes for %d registers from 0x%x-0x%x\n", + dev_dbg(map->dev, "Writing %zu bytes for %d registers from 0x%x-0x%x\n", count * val_bytes, count, base, cur - 1); map->cache_bypass = 1; -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/