radeonfb: Clean up printk()'s in
Subsystems (2)
PATCH 6/53 radeonfb: Clean up printk()'s in
This patch adds KERN_ constants to all of the printk()'s that need them in drivers/video/aty/radeon_base.c
drivers/video/aty/radeon_base.c +4 -4
@@ -710,12 +710,12 @@if (rinfo->pll.sclk ==0 ) rinfo->pll.sclk =20000 ; -printk ("radeonfb: Reference=%d.%02d MHz (RefDiv=%d) Memory=%d.%02d Mhz, System=%d.%02d MHz\n" , +pr_info ("radeonfb: Reference=%d.%02d MHz (RefDiv=%d) Memory=%d.%02d Mhz, System=%d.%02d MHz\n" , rinfo->pll.ref_clk /100 , rinfo->pll.ref_clk %100 , rinfo->pll.ref_div, rinfo->pll.mclk /100 , rinfo->pll.mclk %100 , rinfo->pll.sclk /100 , rinfo->pll.sclk %100 ); -printk ("radeonfb: PLL min %d max %d\n" , rinfo->pll.ppll_min, rinfo->pll.ppll_max); +pr_info ("radeonfb: PLL min %d max %d\n" , rinfo->pll.ppll_min, rinfo->pll.ppll_max); }static int radeonfb_check_var (struct fb_var_screeninfo *var,struct fb_info *info)
@@ -795,7 +795,7 @@ v.transp.length =8 ;break ;default : -printk ("radeonfb: mode %dx%dx%d rejected, color depth invalid\n" , +printk (KERN_ERR "radeonfb: mode %dx%dx%d rejected, color depth invalid\n" , var->xres, var->yres, var->bits_per_pixel);return -EINVAL ; }
@@ -2391,7 +2391,7 @@ }#endif -printk ("radeonfb (%s): %s\n" ,pci_name (rinfo->pdev), rinfo->name); +pr_info ("radeonfb (%s): %s\n" ,pci_name (rinfo->pdev), rinfo->name);if (rinfo->bios_seg)radeon_unmap_ROM (rinfo, pdev);
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
drivers/video/aty/radeon_base.c line 2394
Quoted 8 lines · James Nelson
drivers/video/aty/radeon_base.c +2
-2-printk ("radeonfb: mode %dx%dx%d rejected, color depth invalid\n" , +printk (KERN_ERR "radeonfb: mode %dx%dx%d rejected, color depth invalid\n" , - printk ("radeonfb (%s): %s\n", pci_name(rinfo->pdev), rinfo->name); + pr_info ("radeonfb (%s): %s\n", pci_name(rinfo->pdev), rinfo->name);
"f(x)" (without space between "f" and "(") style is dominant in this file. I'd remove these spaces.
Alexey
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Re: [KJ] [PATCH 6/53] radeonfb: Clean up printk()'s
In reply to James NelsonQuoted 11 lines · Alexey Dobriyan
Quoted 6 lines · James Nelson
drivers/video/aty/radeon_base.c +1
-1- printk ("radeonfb: mode %dx%dx%d rejected, color depth invalid\n", + printk (KERN_ERR "radeonfb: mode %dx%dx%d rejected, color depth invalid\n",
Quoted 9 lines
drivers/video/aty/radeon_base.c line 2394
Quoted 2 lines
drivers/video/aty/radeon_base.c +1
-1-printk ("radeonfb (%s): %s\n" ,pci_name (rinfo->pdev), rinfo->name); +pr_info ("radeonfb (%s): %s\n" ,pci_name (rinfo->pdev), rinfo->name);"f(x)" (without space between "f" and "(") style is dominant in this file. I'd remove these spaces.
Alexey
This driver needs a thorough whitespace cleanup - I was trying to minimize changes. I'll add this to my "needs a Lindent patch submitted later" list.
Jim
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors