]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regmap: cache: Fix format specifier in dev_dbg
authorStratos Karafotis <stratosk@semaphore.gr>
Thu, 4 Apr 2013 16:40:45 +0000 (19:40 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 5 Apr 2013 10:28:12 +0000 (11:28 +0100)
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>
drivers/base/regmap/regcache.c

index 3ae8d9bafe6831c076cce30de675f894f164c140..75923f2396bd4f7b01727bae6cbedb4239b4ec18 100644 (file)
@@ -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;