aboutsummaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorStratos Karafotis <stratosk@semaphore.gr>2013-04-04 19:40:45 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-05 11:28:12 +0100
commit9659293c1784f3d9df2235f6ebf92f6f9059a563 (patch)
tree312d702d23bb94b3c2b472f3e4e786270e6c7f3e /drivers/base
parentf52687afb87cfb2d26699d7f84088c2b04adde50 (diff)
regmap: cache: Fix format specifier in dev_dbg
Fix format specifier in dev_dbg and suppress the following warning drivers/base/regmap/regcache.c: In function ‘regcache_sync_block_raw_flush’: drivers/base/regmap/regcache.c:593:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat] Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index 3ae8d9bafe6..75923f2396b 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;