summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/regmap.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-10-25 14:07:18 -0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-25 18:55:11 +0100
commit1a61cfe3445218637f38b355c76fc3132865a0a6 (patch)
treec3378af914ed2795862d28fbe3da848f7b616d1f /drivers/base/regmap/regmap.c
parent8a2ceac6617a67d8a1ee4bd255743d577bde311a (diff)
regmap: Fix printing of size_t variable
val_bytes is of 'size_t', so it should be printed as '%zu'. Fixes the following build warning on x86: drivers/base/regmap/regmap.c:872:4: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat] Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/regmap.c')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 96253cd949e..336bedb04ba 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -858,7 +858,7 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
/* If the write goes beyond the end of the window split it */
while (val_num > win_residue) {
- dev_dbg(map->dev, "Writing window %d/%d\n",
+ dev_dbg(map->dev, "Writing window %d/%zu\n",
win_residue, val_len / map->format.val_bytes);
ret = _regmap_raw_write(map, reg, val, win_residue *
map->format.val_bytes);