From: Heinrich Schuchardt Date: Sun, 27 Dec 2020 08:46:46 +0000 (+0100) Subject: adc: meson-saradc: use correct printf code X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=d50b73643fb78b048ba1568486e2ff662ec10067;p=u-boot.git adc: meson-saradc: use correct printf code For printing unsigned int we have to use %u not %d. Signed-off-by: Heinrich Schuchardt Acked-by: Neil Armstrong Signed-off-by: Neil Armstrong --- 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; }