diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2016-07-31 03:19:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-01 16:32:51 -0400 |
commit | 59d53bc213efed3cb40eae2a8273eafd884786a1 (patch) | |
tree | 71b613d5cc41ec941b175404f9afe0aea0c9bb7e /drivers/net/caif | |
parent | df7e88f6cad8cc4e02c9275018a572fab59562c0 (diff) |
net: caif: use correct format specifier
%u is the wrong format specifier for int.
size_t cannot be converted to int without possible
loss of information.
So leave the result as size_t and use %zu as format specifier.
cf. Documentation/printk-formats.txt
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/caif')
-rw-r--r-- | drivers/net/caif/caif_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c index 4721948a92f6..3a529fbe539f 100644 --- a/drivers/net/caif/caif_spi.c +++ b/drivers/net/caif/caif_spi.c | |||
@@ -185,8 +185,8 @@ static ssize_t print_frame(char *buf, size_t size, char *frm, | |||
185 | /* Fast forward. */ | 185 | /* Fast forward. */ |
186 | i = count - cut; | 186 | i = count - cut; |
187 | len += snprintf((buf + len), (size - len), | 187 | len += snprintf((buf + len), (size - len), |
188 | "--- %u bytes skipped ---\n", | 188 | "--- %zu bytes skipped ---\n", |
189 | (int)(count - (cut * 2))); | 189 | count - (cut * 2)); |
190 | } | 190 | } |
191 | 191 | ||
192 | if ((!(i % 10)) && i) { | 192 | if ((!(i % 10)) && i) { |