sm501fb: fix printk format warnings
PATCH 1/1 sm501fb: fix printk format warnings
From: Randy Dunlap <[email protected]>
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'
--- drivers/video/sm501fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/sm501fb.c +1 -1
@@ -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/
Quoted 15 lines
From: Randy Dunlap <[email protected]>
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 <[email protected]>--- drivers/video/sm501fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/sm501fb.c static int sm501fb_cursor(struct fb_info · line 995
Quoted 8 lines
drivers/video/sm501fb.c +1
-1@@ -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/
Quoted 7 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
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 <[email protected]>
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/