Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9659293c authored by Stratos Karafotis's avatar Stratos Karafotis Committed by Mark Brown
Browse files

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: default avatarStratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f52687af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;