[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fac6d05d-02d8-d5df-109f-f572ed15a0e5@ti.com>
Date: Tue, 30 Aug 2016 11:57:43 +0300
From: Tomi Valkeinen <tomi.valkeinen@...com>
To: Oleg Drokin <green@...uxhacker.ru>,
Jean-Christophe Plagniol-Villard <plagnioj@...osoft.com>,
"Luis R. Rodriguez" <mcgrof@...e.com>
CC: <linux-fbdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mx3fb: Fix print format string
On 27/08/16 06:05, Oleg Drokin wrote:
> %ul was probably meant as %lu since the former would print
> an unsigned value and a letter l.
>
> But in fact the whole value we are printing in u32 anyway, so
> we don't need the format to be long. Therefore just drop the l
> altogether.
>
> Signed-off-by: Oleg Drokin <green@...uxhacker.ru>
> ---
> Also do we really need 1000UL specification if we
> cast to u32 anyway? Or should we drop away the cast instead?
> Are pixelclocks over 4GHz possible here?
>
> drivers/video/fbdev/mx3fb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/fbdev/mx3fb.c b/drivers/video/fbdev/mx3fb.c
> index f91b1db..8778e01 100644
> --- a/drivers/video/fbdev/mx3fb.c
> +++ b/drivers/video/fbdev/mx3fb.c
> @@ -845,7 +845,7 @@ static int __set_par(struct fb_info *fbi, bool lock)
> if (fbi->var.sync & FB_SYNC_SHARP_MODE)
> mode = IPU_PANEL_SHARP_TFT;
>
> - dev_dbg(fbi->device, "pixclock = %ul Hz\n",
> + dev_dbg(fbi->device, "pixclock = %u Hz\n",
> (u32) (PICOS2KHZ(fbi->var.pixclock) * 1000UL));
>
> if (sdc_init_panel(mx3fb, mode,
>
Thanks, queued for 4.9.
Tomi
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists