virgefb: Clean up printk()'s in
Subsystems (2)
PATCH RESEND 51/53 virgefb: Clean up printk()'s in
This patch adds KERN_ constants to all of the printk()'s that need them in drivers/video/virgefb.c - resent since KDevelop munged the source file.
Signed-off-by James Nelson <[email protected]>
drivers/video/virgefb.c +22 -22
@@ -2157,7 +2157,7 @@ } }if (save == ~0UL ) -printk ("Can't compute clock PLL values for %ld Hz clock\n" , freq); +printk (KERN_NOTICE "Can't compute clock PLL values for %ld Hz clock\n" , freq);DPRINTK ("EXIT\n" );return (mnr); }
@@ -2435,20 +2435,20 @@printk ("\n" );for (i =0 ; i <=0x6f ; i++) {wb_mmio (CRT_ADDRESS , i); -printk ("crt idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (CRT_ADDRESS_R )); +pr_info ("crt idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (CRT_ADDRESS_R )); }for (i =0 ; i <=0x1c ; i++) {wb_mmio (SEQ_ADDRESS , i); -printk ("seq idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (SEQ_ADDRESS_R )); +pr_info ("seq idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (SEQ_ADDRESS_R )); }for (i =0 ; i <=8 ; i++) {wb_mmio (GCT_ADDRESS , i); -printk ("gfx idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (GCT_ADDRESS_R )); +pr_info ("gfx idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (GCT_ADDRESS_R )); }for (i =0 ; i <=0x14 ; i++) { c =rb_mmio (ACT_ADDRESS_RESET );wb_mmio (ACT_ADDRESS_W , i); -printk ("atr idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (ACT_ADDRESS_R )); +pr_info ("atr idx : 0x%2.2x : 0x%2.2x\n" , i,rb_mmio (ACT_ADDRESS_R )); }/* re-enable video access to palette */
@@ -2461,23 +2461,23 @@/* general regs */ -printk ("0x3cc(w 0x3c2) : 0x%2.2x\n" ,rb_mmio (0x3cc ));/* GREG_MISC_OUTPUT READ */ -printk ("0x3c2(-------) : 0x%2.2x\n" ,rb_mmio (0x3c2 ));/* GREG_INPUT_STATUS 0 READ */ -printk ("0x3c3(w 0x3c3) : 0x%2.2x\n" ,rb_vgaio (0x3c3 ));/* GREG_VIDEO_SUBS_ENABLE */ -printk ("0x3ca(w 0x3da) : 0x%2.2x\n" ,rb_vgaio (0x3ca ));/* GREG_FEATURE_CONTROL read */ -printk ("0x3da(-------) : 0x%2.2x\n" ,rb_mmio (0x3da ));/* GREG_INPUT_STATUS 1 READ */ +pr_info ("0x3cc(w 0x3c2) : 0x%2.2x\n" ,rb_mmio (0x3cc ));/* GREG_MISC_OUTPUT READ */ +pr_info ("0x3c2(-------) : 0x%2.2x\n" ,rb_mmio (0x3c2 ));/* GREG_INPUT_STATUS 0 READ */ +pr_info ("0x3c3(w 0x3c3) : 0x%2.2x\n" ,rb_vgaio (0x3c3 ));/* GREG_VIDEO_SUBS_ENABLE */ +pr_info ("0x3ca(w 0x3da) : 0x%2.2x\n" ,rb_vgaio (0x3ca ));/* GREG_FEATURE_CONTROL read */ +pr_info ("0x3da(-------) : 0x%2.2x\n" ,rb_mmio (0x3da ));/* GREG_INPUT_STATUS 1 READ */ /* engine regs */ for (i =0x8180 ; i <=0x8200 ; i = i +4 ) -printk ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i)); +pr_info ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i)); i =0x8504 ; -printk ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i)); +pr_info ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i)); i =0x850c ; -printk ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i)); +pr_info ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i));for (i =0xa4d4 ; i <=0xa50c ; i = i +4 ) -printk ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i)); +pr_info ("0x%8.8x : 0x%8.8x\n" , i,rl_mmio (i));/* PCI regs */
@@ -2485,29 +2485,29 @@for (c =0 ; c <0x08 ; c = c +2 ) { w = (*((u16 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 )) ^2 ))); -printk ("pci 0x%2.2x : 0x%4.4x\n" , c, w); +pr_info ("pci 0x%2.2x : 0x%4.4x\n" , c, w); } c =8 ; l = (*((u32 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 ))))); -printk ("pci 0x%2.2x : 0x%8.8x\n" , c, l); +pr_info ("pci 0x%2.2x : 0x%8.8x\n" , c, l); c =0x0d ; b = (*((u8 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 )) ^3 ))); -printk ("pci 0x%2.2x : 0x%2.2x\n" , c, b); +pr_info ("pci 0x%2.2x : 0x%2.2x\n" , c, b); c =0x10 ; l = (*((u32 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 ))))); -printk ("pci 0x%2.2x : 0x%8.8x\n" , c, l); +pr_info ("pci 0x%2.2x : 0x%8.8x\n" , c, l); c =0x30 ; l = (*((u32 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 ))))); -printk ("pci 0x%2.2x : 0x%8.8x\n" , c, l); +pr_info ("pci 0x%2.2x : 0x%8.8x\n" , c, l); c =0x3c ; b = (*((u8 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 )) ^3 ))); -printk ("pci 0x%2.2x : 0x%2.2x\n" , c, b); +pr_info ("pci 0x%2.2x : 0x%2.2x\n" , c, b); c =0x3d ; b = (*((u8 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 )) ^3 ))); -printk ("pci 0x%2.2x : 0x%2.2x\n" , c, b); +pr_info ("pci 0x%2.2x : 0x%2.2x\n" , c, b); c =0x3e ; w = (*((u16 *)((u32)(vgaio_regs + c + (on_zorro2 ?0 :0x000e0000 )) ^2 ))); -printk ("pci 0x%2.2x : 0x%4.4x\n" , c, w); +pr_info ("pci 0x%2.2x : 0x%4.4x\n" , c, w); SelectMMIO; }#endif
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors