Re: [PATCH] gpio: hisi: Fix format specifier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 12, 2023 at 12:57 PM Devyn Liu <liudingyuan@xxxxxxxxxx> wrote:
>
> The hisi_gpio->line is unsigned int so the format specifier
> should have been %u not %d.
>
> Signed-off-by: Devyn Liu <liudingyuan@xxxxxxxxxx>
> ---
>  drivers/gpio/gpio-hisi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-hisi.c b/drivers/gpio/gpio-hisi.c
> index 29a03de37fd8..ef5cc654a24e 100644
> --- a/drivers/gpio/gpio-hisi.c
> +++ b/drivers/gpio/gpio-hisi.c
> @@ -255,7 +255,7 @@ static void hisi_gpio_get_pdata(struct device *dev,
>                 hisi_gpio->irq = platform_get_irq(pdev, idx);
>
>                 dev_info(dev,
> -                        "get hisi_gpio[%d] with %d lines\n", idx,
> +                        "get hisi_gpio[%d] with %u lines\n", idx,
>                          hisi_gpio->line_num);
>
>                 idx++;
> --
> 2.30.0
>

Applied, thanks!

Bart




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux