diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-12-27 11:46:46 +0300 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2021-01-11 16:59:55 +0300 |
commit | d50b73643fb78b048ba1568486e2ff662ec10067 (patch) | |
tree | 7edfcb292929771e426014e51f2ed409ae6a1eac /drivers/adc | |
parent | 702b8300f028f646297d0a606a0cc6f47a98c921 (diff) | |
download | u-boot-d50b73643fb78b048ba1568486e2ff662ec10067.tar.xz |
adc: meson-saradc: use correct printf code
For printing unsigned int we have to use %u not %d.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'drivers/adc')
-rw-r--r-- | drivers/adc/meson-saradc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index ce7ae990ad..e7a8ff3932 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -282,7 +282,7 @@ static int meson_saradc_read_raw_sample(struct meson_saradc_priv *priv, regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, ®val); fifo_chan = FIELD_GET(MESON_SAR_ADC_FIFO_RD_CHAN_ID_MASK, regval); if (fifo_chan != channel) { - printf("ADC FIFO entry belongs to channel %d instead of %d\n", + printf("ADC FIFO entry belongs to channel %u instead of %u\n", fifo_chan, channel); return -EINVAL; } |