All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] regmap: cache: Fix format specifier in dev_dbg
@ 2013-04-04 16:40 Stratos Karafotis
  2013-04-05 10:29 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Stratos Karafotis @ 2013-04-04 16:40 UTC (permalink / raw)
  To: Mark Brown; +Cc: Greg Kroah-Hartman, linux-kernel

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>
---
 drivers/base/regmap/regcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index d81f605..a469748 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;
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH linux-next] regmap: cache: Fix format specifier in dev_dbg
  2013-04-04 16:40 [PATCH linux-next] regmap: cache: Fix format specifier in dev_dbg Stratos Karafotis
@ 2013-04-05 10:29 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-04-05 10:29 UTC (permalink / raw)
  To: Stratos Karafotis; +Cc: Greg Kroah-Hartman, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]

On Thu, Apr 04, 2013 at 07:40:45PM +0300, Stratos Karafotis wrote:
> 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]

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-05 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 16:40 [PATCH linux-next] regmap: cache: Fix format specifier in dev_dbg Stratos Karafotis
2013-04-05 10:29 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.