linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sm501fb: fix printk format warnings
@ 2007-05-01  0:58 Randy Dunlap
  2007-05-01 15:15 ` James Simmons
  2007-05-02 23:16 ` Antonino A. Daplas
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2007-05-01  0:58 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: akpm, adaplas

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix printk format warnings:
drivers/video/sm501fb.c:992: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
drivers/video/sm501fb.c:992: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/video/sm501fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.21-git3.orig/drivers/video/sm501fb.c
+++ linux-2.6.21-git3/drivers/video/sm501fb.c
@@ -989,7 +989,7 @@ static int sm501fb_cursor(struct fb_info
 			((info->cmap.green[fg_col] & 0xFC) << 3) |
 			((info->cmap.blue[fg_col] & 0xF8) >> 3);
 
-		dev_dbg(fbi->dev, "fgcol %08x, bgcol %08x\n", fg, bg);
+		dev_dbg(fbi->dev, "fgcol %08lx, bgcol %08lx\n", fg, bg);
 
 		writel(bg, base + SM501_OFF_HWC_COLOR_1_2);
 		writel(fg, base + SM501_OFF_HWC_COLOR_3);

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: [PATCH] sm501fb: fix printk format warnings
  2007-05-01  0:58 [PATCH] sm501fb: fix printk format warnings Randy Dunlap
@ 2007-05-01 15:15 ` James Simmons
  2007-05-02 23:16 ` Antonino A. Daplas
  1 sibling, 0 replies; 3+ messages in thread
From: James Simmons @ 2007-05-01 15:15 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: akpm, adaplas


> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Fix printk format warnings:
> drivers/video/sm501fb.c:992: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
> drivers/video/sm501fb.c:992: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
>  drivers/video/sm501fb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- linux-2.6.21-git3.orig/drivers/video/sm501fb.c
> +++ linux-2.6.21-git3/drivers/video/sm501fb.c
> @@ -989,7 +989,7 @@ static int sm501fb_cursor(struct fb_info
>  			((info->cmap.green[fg_col] & 0xFC) << 3) |
>  			((info->cmap.blue[fg_col] & 0xF8) >> 3);
>  
> -		dev_dbg(fbi->dev, "fgcol %08x, bgcol %08x\n", fg, bg);
> +		dev_dbg(fbi->dev, "fgcol %08lx, bgcol %08lx\n", fg, bg);
>  
>  		writel(bg, base + SM501_OFF_HWC_COLOR_1_2);
>  		writel(fg, base + SM501_OFF_HWC_COLOR_3);

Acked-By: James Simmons <jsimmons@infradead.org>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: [PATCH] sm501fb: fix printk format warnings
  2007-05-01  0:58 [PATCH] sm501fb: fix printk format warnings Randy Dunlap
  2007-05-01 15:15 ` James Simmons
@ 2007-05-02 23:16 ` Antonino A. Daplas
  1 sibling, 0 replies; 3+ messages in thread
From: Antonino A. Daplas @ 2007-05-02 23:16 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: akpm, linux-fbdev-devel

On Mon, 2007-04-30 at 17:58 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Fix printk format warnings:
> drivers/video/sm501fb.c:992: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
> drivers/video/sm501fb.c:992: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>

This is already in the -mm tree.

Tony



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

end of thread, other threads:[~2007-05-02 23:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01  0:58 [PATCH] sm501fb: fix printk format warnings Randy Dunlap
2007-05-01 15:15 ` James Simmons
2007-05-02 23:16 ` Antonino A. Daplas

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).