Commit 034f5857 authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman

Staging: line6: fix printk formats

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d722a510
...@@ -579,7 +579,7 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr, ...@@ -579,7 +579,7 @@ static ssize_t pod_set_dump(struct device *dev, struct device_attribute *attr,
if (count != sizeof(pod->prog_data)) { if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev, 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)); sizeof(pod->prog_data));
return -EINVAL; return -EINVAL;
} }
...@@ -691,7 +691,7 @@ static ssize_t pod_set_dump_buf(struct device *dev, ...@@ -691,7 +691,7 @@ static ssize_t pod_set_dump_buf(struct device *dev,
if (count != sizeof(pod->prog_data)) { if (count != sizeof(pod->prog_data)) {
dev_err(pod->line6.ifcdev, 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)); sizeof(pod->prog_data));
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment