]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
adc: meson-saradc: use correct printf code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 27 Dec 2020 08:46:46 +0000 (09:46 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 11 Jan 2021 13:59:55 +0000 (14:59 +0100)
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>
drivers/adc/meson-saradc.c

index ce7ae990ad025c4d7d10c8d88791f679df9cc6b4..e7a8ff39329baa89791fd5c004c70d3028c1c96f 100644 (file)
@@ -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, &regval);
        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;
        }