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 13:07:15 +0100 |
commit | e257a16e680a27ddc3dcbfc9fd39ad7f9d7ea135 (patch) | |
tree | cdb22e51806ef880fad87b953451379671e5ee20 | |
parent | staging: iio: resolver: ad2s1210: Change type in printf format string (diff) | |
download | linux-e257a16e680a27ddc3dcbfc9fd39ad7f9d7ea135.tar.xz linux-e257a16e680a27ddc3dcbfc9fd39ad7f9d7ea135.zip |
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 d9d6fad7cb00..d5f8ea96f4bc 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); |