Skip to content

Commit

Permalink
regmap: Fix type of field width specifiers for x86_64
Browse files Browse the repository at this point in the history
x86_64 size_t is not an int but the printf format specifier for size_t
should be an int.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Mark Brown committed Aug 9, 2011
1 parent 3d9ead7 commit cb3c2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regmap-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static int regmap_map_open_file(struct inode *inode, struct file *file)
static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
size_t reg_len, val_len, tot_len;
int reg_len, val_len, tot_len;
size_t buf_pos = 0;
loff_t p = 0;
ssize_t ret;
Expand Down

0 comments on commit cb3c2dc

Please sign in to comment.