rivafb: Clean up printk()'s in
Subsystems (2)
PATCH RESEND 44/53 rivafb: Clean up printk()'s in
This patch adds KERN_ constants to all of the printk()'s that need them in drivers/video/riva/fbdev.c - resent after reworking the debug #defines
Signed-off-by James Nelson <[email protected]>
drivers/video/riva/fbdev.c +6 -7
@@ -68,18 +68,17 @@* * ------------------------------------------------------------------------- */ #ifdef CONFIG_FB_RIVA_DEBUG -#define NVTRACE printk -#else -#define NVTRACE if(0) printk +#define DEBUG #endif +#define NVTRACE pr_debug#define NVTRACE_ENTER (...) NVTRACE("%s START\n", __FUNCTION__)#define NVTRACE_LEAVE (...) NVTRACE("%s END\n", __FUNCTION__)#ifdef CONFIG_FB_RIVA_DEBUG #define assert (expr) \ if(!(expr)) { \ - printk( "Assertion failed! %s,%s,%s,line=%d\n",\ + pr_debug( "Assertion failed! %s,%s,%s,line=%d\n",\ #expr,__FILE__,__FUNCTION__,__LINE__); \ BUG(); \ }
@@ -1780,7 +1779,7 @@for (i =0 ; i < par->bus; i++) {riva_probe_i2c_connector (par, i+1 , &par->EDID);if (par->EDID && !fb_parse_edid (par->EDID, &var)) { -printk (PFX "Found EDID Block from BUS %i\n" , i); +pr_info (PFX "Found EDID Block from BUS %i\n" , i);break ; } }
@@ -1829,10 +1828,10 @@NVTRACE_ENTER ();#ifdef CONFIG_PPC_OF if (!riva_get_EDID_OF (info, pdev)) -printk (PFX "could not retrieve EDID from OF\n" ); +pr_info (PFX "could not retrieve EDID from OF\n" );#elif CONFIG_FB_RIVA_I2C if (!riva_get_EDID_i2c (info)) -printk (PFX "could not retrieve EDID from DDC/I2C\n" ); +pr_info (PFX "could not retrieve EDID from DDC/I2C\n" );#endif NVTRACE_LEAVE (); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors