Skip to content

Commit

Permalink
Staging: line6: fix printk formats
Browse files Browse the repository at this point in the history
Fix printk format warnings in line6/pod.c; sizeof() is of type
size_t, so use %zu.

drivers/staging/line6/pod.c:581: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
drivers/staging/line6/pod.c:693: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent d722a51 commit 034f585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/line6/pod.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr,

if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev,
"data block must be exactly %d bytes\n",
"data block must be exactly %zu bytes\n",
sizeof(pod->prog_data));
return -EINVAL;
}
Expand Down Expand Up @@ -691,7 +691,7 @@ static ssize_t pod_set_dump_buf(struct device *dev,

if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev,
"data block must be exactly %d bytes\n",
"data block must be exactly %zu bytes\n",
sizeof(pod->prog_data));
return -EINVAL;
}
Expand Down

0 comments on commit 034f585

Please sign in to comment.