regmap: cache: Fix format specifier in dev_dbg
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/base/regmap/regcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regcache.c +1 -1
@@ -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 ;
Signature · 1 line
1.8.1.4
Mark Brown
AppliedQuoted 6 lines · Stratos Karafotis
Fix format specifier in
dev_dbgand 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]
Applied, thanks.