Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stratos Karafotis and committed by
Mark Brown
9659293c f52687af

+1 -1
+1 -1
drivers/base/regmap/regcache.c
··· 590 590 591 591 count = cur - base; 592 592 593 - dev_dbg(map->dev, "Writing %d bytes for %d registers from 0x%x-0x%x\n", 593 + dev_dbg(map->dev, "Writing %zu bytes for %d registers from 0x%x-0x%x\n", 594 594 count * val_bytes, count, base, cur - 1); 595 595 596 596 map->cache_bypass = 1;