[PATCH] adc: meson-saradc: use correct printf code
Neil Armstrong
narmstrong at baylibre.com
Tue Dec 29 09:23:43 CET 2020
On 27/12/2020 09:46, Heinrich Schuchardt wrote:
> For printing unsigned int we have to use %u not %d.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> drivers/adc/meson-saradc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c
> index 13a8f49dc5..406583e474 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;
> }
> --
> 2.29.2
>
Acked-by: Neil Armstrong <narmstrong at baylibre.com>
More information about the U-Boot
mailing list