linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video/mx3fb: remove stray l from debug output
@ 2012-08-13  7:44 Uwe Kleine-König
  2012-08-13 17:09 ` Geert Uytterhoeven
  2012-08-14 19:30 ` Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2012-08-13  7:44 UTC (permalink / raw)
  To: linux-fbdev

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/video/mx3fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index c89f8a8..1dfdeb1 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -771,7 +771,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,
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] video/mx3fb: remove stray l from debug output
  2012-08-13  7:44 [PATCH] video/mx3fb: remove stray l from debug output Uwe Kleine-König
@ 2012-08-13 17:09 ` Geert Uytterhoeven
  2012-08-14 19:30 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2012-08-13 17:09 UTC (permalink / raw)
  To: linux-fbdev

On Mon, Aug 13, 2012 at 9:44 AM, Uwe Kleine-König
<u.kleine-koenig@pengutronix.de> wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/video/mx3fb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
> index c89f8a8..1dfdeb1 100644
> --- a/drivers/video/mx3fb.c
> +++ b/drivers/video/mx3fb.c
> @@ -771,7 +771,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));

I think a better fix is to change the dyslectic "%ul" to "%lu", and
drop the cast to
u32, which was probably only added to kill the compiler warning caused by the
dyslectia issue.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] video/mx3fb: remove stray l from debug output
  2012-08-13  7:44 [PATCH] video/mx3fb: remove stray l from debug output Uwe Kleine-König
  2012-08-13 17:09 ` Geert Uytterhoeven
@ 2012-08-14 19:30 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2012-08-14 19:30 UTC (permalink / raw)
  To: linux-fbdev

On Mon, Aug 13, 2012 at 7:09 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Mon, Aug 13, 2012 at 9:44 AM, Uwe Kleine-König
> <u.kleine-koenig@pengutronix.de> wrote:
>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>> ---
>>  drivers/video/mx3fb.c |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
>> index c89f8a8..1dfdeb1 100644
>> --- a/drivers/video/mx3fb.c
>> +++ b/drivers/video/mx3fb.c
>> @@ -771,7 +771,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));
>
> I think a better fix is to change the dyslectic "%ul" to "%lu", and
> drop the cast to
> u32, which was probably only added to kill the compiler warning caused by the
> dyslectia issue.

BTW, 'git grep "%ul"' shows a few more of these dyslectia issues.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-14 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13  7:44 [PATCH] video/mx3fb: remove stray l from debug output Uwe Kleine-König
2012-08-13 17:09 ` Geert Uytterhoeven
2012-08-14 19:30 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).