diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2015-01-27 23:23:33 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-02-08 12:07:15 +0000 |
commit | e257a16e680a27ddc3dcbfc9fd39ad7f9d7ea135 (patch) | |
tree | cdb22e51806ef880fad87b953451379671e5ee20 | |
parent | 31a3dda6489dd68552e1e6af56abcf65405d6b5c (diff) | |
download | op-kernel-dev-e257a16e680a27ddc3dcbfc9fd39ad7f9d7ea135.zip op-kernel-dev-e257a16e680a27ddc3dcbfc9fd39ad7f9d7ea135.tar.gz |
staging: iio: adc: mxs-lradc: Change type in printf format string
Wrong type in printf format string, requires 'int'
but the argument type is 'unsigned int'
This was found using a static code analysis program called cppcheck
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/adc/mxs-lradc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c index d9d6fad..d5f8ea9 100644 --- a/drivers/staging/iio/adc/mxs-lradc.c +++ b/drivers/staging/iio/adc/mxs-lradc.c @@ -1008,7 +1008,7 @@ static ssize_t mxs_lradc_show_scale_available_ch(struct device *dev, int i, len = 0; for (i = 0; i < ARRAY_SIZE(lradc->scale_avail[ch]); i++) - len += sprintf(buf + len, "%d.%09u ", + len += sprintf(buf + len, "%u.%09u ", lradc->scale_avail[ch][i].integer, lradc->scale_avail[ch][i].nano); |