From mboxrd@z Thu Jan 1 00:00:00 1970 From: domen@coderock.org Subject: [patch 1/1] drivers/video/: Clean up printk()s Date: Mon, 20 Jun 2005 23:53:14 +0200 Message-ID: <20050620215314.061801000@nd47.coderock.org> Reply-To: linux-fbdev-devel@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1DkUMm-0002vj-J9 for linux-fbdev-devel@lists.sourceforge.net; Mon, 20 Jun 2005 15:03:40 -0700 Received: from coderock.org ([193.77.147.115] helo=trashy.coderock.org ident=postfix) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.41) id 1DkUMg-00077j-Gy for linux-fbdev-devel@lists.sourceforge.net; Mon, 20 Jun 2005 15:03:40 -0700 Content-Disposition: inline; filename=printk-drivers_video.patch Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: adaplas@pol.net Cc: linux-fbdev-devel@lists.sourceforge.net, James Nelson , domen@coderock.org From: James Nelson This patch adds KERN_ constants to all of the printk()'s that need them in drivers/video/ Signed-off-by: James Nelson Signed-off-by: Domen Puncer --- atafb.c | 6 - aty/mach64_ct.c | 22 ++---- aty/radeon_monitor.c | 6 - aty/radeon_pm.c | 4 - bw2.c | 2=20 cg3.c | 2=20 cg6.c | 2=20 cirrusfb.c | 21 +++--- clps711xfb.c | 2=20 console/fbcon.c | 2=20 console/mdacon.c | 4 - console/newport_con.c | 4 - cyber2000fb.c | 2=20 dnfb.c | 2=20 fbmem.c | 2=20 fbmon.c | 10 +-- ffb.c | 6 - fm2fb.c | 2=20 igafb.c | 12 +-- imsttfb.c | 5 - intelfb/intelfbhw.c | 152 +++++++++++++++++++++++-------------------= ----- kyro/fbdev.c | 2=20 leo.c | 2=20 macfb.c | 14 ++-- matrox/matroxfb_base.c | 2=20 modedb.c | 2=20 neofb.c | 10 +-- p9100.c | 2=20 platinumfb.c | 6 - pm3fb.c | 2=20 pmag-ba-fb.c | 2=20 pmagb-b-fb.c | 2=20 pvr2fb.c | 4 - radeonfb.c | 63 ++++++++----------- retz3fb.c | 84 ++++++++++++------------- riva/fbdev.c | 13 ++-- savage/savagefb_driver.c | 35 ++++++---- sstfb.c | 2=20 sun3fb.c | 6 - tcx.c | 2=20 tdfxfb.c | 12 +-- virgefb.c | 46 +++++++------- w100fb.c | 8 +- 43 files changed, 296 insertions(+), 295 deletions(-) Index: quilt/drivers/video/atafb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/atafb.c +++ quilt/drivers/video/atafb.c @@ -2732,7 +2732,7 @@ int __init atafb_init(void) } fbhw =3D &st_switch; atafb_ops.fb_setcolreg =3D &stste_setcolreg; - printk("Cannot determine video hardware; defaulting to ST(e)\n"); + pr_info("Cannot determine video hardware; defaulting to ST(e)\n"); #else /* ATAFB_STE */ /* no default driver included */ /* Nobody will ever see this message :-) */ @@ -2809,13 +2809,13 @@ int __init atafb_init(void) if (register_framebuffer(&fb_info) < 0) return -EINVAL; =20 - printk("Determined %dx%d, depth %d\n", + pr_info("Determined %dx%d, depth %d\n", disp.var.xres, disp.var.yres, disp.var.bits_per_pixel); if ((disp.var.xres !=3D disp.var.xres_virtual) || (disp.var.yres !=3D disp.var.yres_virtual)) printk(" virtual %dx%d\n", disp.var.xres_virtual, disp.var.yres_virtual); - printk("fb%d: %s frame buffer device, using %dK of video memory\n", + pr_info("fb%d: %s frame buffer device, using %dK of video memory\n", fb_info.node, fb_info.modename, screen_len>>10); =20 /* TODO: This driver cannot be unloaded yet */ Index: quilt/drivers/video/aty/mach64_ct.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/aty/mach64_ct.c +++ quilt/drivers/video/aty/mach64_ct.c @@ -196,7 +196,7 @@ static int aty_dsp_gt(const struct fb_in pll->dsp_on_off =3D (dsp_on << 16) + dsp_off; pll->dsp_config =3D (dsp_precision << 20) | (pll->dsp_loop_latency << 16)= | dsp_xclks; #ifdef DEBUG - printk("atyfb(%s): dsp_config 0x%08x, dsp_on_off 0x%08x\n", + pr_debug("atyfb(%s): dsp_config 0x%08x, dsp_on_off 0x%08x\n", __FUNCTION__, pll->dsp_config, pll->dsp_on_off); #endif return 0; @@ -226,7 +226,7 @@ static int aty_valid_pll_ct(const struct #ifdef DEBUG pllvclk =3D (1000000 * 2 * pll->vclk_fb_div) / (par->ref_clk_per * pll->pll_ref_div); - printk("atyfb(%s): pllvclk=3D%d MHz, vclk=3D%d MHz\n", + pr_debug("atyfb(%s): pllvclk=3D%d MHz, vclk=3D%d MHz\n", __FUNCTION__, pllvclk, pllvclk / pll->vclk_post_div_real); #endif pll->pll_vclk_cntl =3D 0x03; /* VCLK =3D PLL_VCLK/VCLKx_POST */ @@ -257,9 +257,7 @@ static u32 aty_pll_to_var_ct(const struc ret /=3D pll->ct.xres; } #endif -#ifdef DEBUG - printk("atyfb(%s): calculated 0x%08X(%i)\n", __FUNCTION__, ret, ret); -#endif + pr_debug("atyfb(%s): calculated 0x%08X(%i)\n", __FUNCTION__, ret, ret); return ret; } =20 @@ -270,17 +268,15 @@ void aty_set_pll_ct(const struct fb_info u8 tmp, tmp2; =20 lcd_gen_cntrl =3D 0; -#ifdef DEBUG - printk("atyfb(%s): about to program:\n" + pr_debug("atyfb(%s): about to program:\n" "pll_ext_cntl=3D0x%02x pll_gen_cntl=3D0x%02x pll_vclk_cntl=3D0x%02x\n", __FUNCTION__, pll->ct.pll_ext_cntl, pll->ct.pll_gen_cntl, pll->ct.pll_vclk_cntl); =20 - printk("atyfb(%s): setting clock %lu for FeedBackDivider %i, ReferenceDiv= ider %i, PostDivider %i(%i)\n", + pr_debug("atyfb(%s): setting clock %lu for FeedBackDivider %i, ReferenceD= ivider %i, PostDivider %i(%i)\n", __FUNCTION__, par->clk_wr_offset, pll->ct.vclk_fb_div, pll->ct.pll_ref_div, pll->ct.vclk_post_div, pll->ct.vclk_post_div_real); -#endif #ifdef CONFIG_FB_ATY_GENERIC_LCD if (par->lcd_table !=3D 0) { /* turn off LCD */ @@ -415,10 +411,8 @@ static int __init aty_init_pll_ct(const=20 pll->ct.xclk_post_div -=3D 1; } =20 -#ifdef DEBUG - printk("atyfb(%s): mclk_fb_mult=3D%d, xclk_post_div=3D%d\n", + pr_debug("atyfb(%s): mclk_fb_mult=3D%d, xclk_post_div=3D%d\n", __FUNCTION__, pll->ct.mclk_fb_mult, pll->ct.xclk_post_div); -#endif =20 memcntl =3D aty_ld_le32(MEM_CNTL, par); trp =3D (memcntl & 0x300) >> 8; @@ -528,7 +522,7 @@ static int __init aty_init_pll_ct(const=20 #ifdef DEBUG pllmclk =3D (1000000 * pll->ct.mclk_fb_mult * pll->ct.mclk_fb_div) / (par->ref_clk_per * pll->ct.pll_ref_div); - printk("atyfb(%s): pllmclk=3D%d MHz, xclk=3D%d MHz\n", + pr_debug("atyfb(%s): pllmclk=3D%d MHz, xclk=3D%d MHz\n", __FUNCTION__, pllmclk, pllmclk / pll->ct.xclk_post_div_real); #endif =20 @@ -569,7 +563,7 @@ static int __init aty_init_pll_ct(const=20 #ifdef DEBUG pllsclk =3D (1000000 * 2 * sclk_fb_div) / (par->ref_clk_per * pll->ct.pll_ref_div); - printk("atyfb(%s): use sclk, pllsclk=3D%d MHz, sclk=3Dmclk=3D%d MHz\n", + pr_debug("atyfb(%s): use sclk, pllsclk=3D%d MHz, sclk=3Dmclk=3D%d MHz\n", __FUNCTION__, pllsclk, pllsclk / sclk_post_div_real); #endif /* Index: quilt/drivers/video/aty/radeon_monitor.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/aty/radeon_monitor.c +++ quilt/drivers/video/aty/radeon_monitor.c @@ -178,10 +178,10 @@ static int __devinit radeon_get_panel_in for(i=3D0; i<24; i++) stmp[i] =3D BIOS_IN8(tmp+i+1); stmp[24] =3D 0; - printk("radeonfb: panel ID string: %s\n", stmp); + pr_info("radeonfb: panel ID string: %s\n", stmp); rinfo->panel_info.xres =3D BIOS_IN16(tmp + 25); rinfo->panel_info.yres =3D BIOS_IN16(tmp + 27); - printk("radeonfb: detected LVDS panel size from BIOS: %dx%d\n", + pr_info("radeonfb: detected LVDS panel size from BIOS: %dx%d\n", rinfo->panel_info.xres, rinfo->panel_info.yres); =20 rinfo->panel_info.pwr_delay =3D BIOS_IN16(tmp + 44); @@ -561,7 +561,7 @@ void __devinit radeon_probe_screens(stru ((rinfo->bios_seg && (INREG(BIOS_4_SCRATCH) & 4)) || (INREG(LVDS_GEN_CNTL) & LVDS_ON))) { rinfo->mon1_type =3D MT_LCD; - printk("Non-DDC laptop panel detected\n"); + pr_info("Non-DDC laptop panel detected\n"); } if (rinfo->mon1_type =3D=3D MT_NONE) rinfo->mon1_type =3D radeon_crt_is_connected(rinfo, rinfo->reversed_DAC= ); Index: quilt/drivers/video/aty/radeon_pm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/aty/radeon_pm.c +++ quilt/drivers/video/aty/radeon_pm.c @@ -2722,10 +2722,10 @@ void radeonfb_pm_init(struct radeonfb_in rinfo->dynclk =3D dynclk; if (dynclk =3D=3D 1) { radeon_pm_enable_dynamic_mode(rinfo); - printk("radeonfb: Dynamic Clock Power Management enabled\n"); + pr_info("radeonfb: Dynamic Clock Power Management enabled\n"); } else if (dynclk =3D=3D 0) { radeon_pm_disable_dynamic_mode(rinfo); - printk("radeonfb: Dynamic Clock Power Management disabled\n"); + pr_info("radeonfb: Dynamic Clock Power Management disabled\n"); } =20 /* Check if we can power manage on suspend/resume. We can do Index: quilt/drivers/video/bw2.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/bw2.c +++ quilt/drivers/video/bw2.c @@ -374,7 +374,7 @@ static void bw2_init_one(struct sbus_dev =20 list_add(&all->list, &bw2_list); =20 - printk("bw2: bwtwo at %lx:%lx\n", + pr_info("bw2: bwtwo at %lx:%lx\n", (long) (sdev ? sdev->reg_addrs[0].which_io : 0), (long) all->par.physbase); } Index: quilt/drivers/video/cg3.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/cg3.c +++ quilt/drivers/video/cg3.c @@ -435,7 +435,7 @@ static void cg3_init_one(struct sbus_dev =20 list_add(&all->list, &cg3_list); =20 - printk("cg3: %s at %lx:%lx\n", + pr_info("cg3: %s at %lx:%lx\n", sdev->prom_name, (long) sdev->reg_addrs[0].which_io, (long) sdev->reg_addrs[0].phys_addr); Index: quilt/drivers/video/cg6.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/cg6.c +++ quilt/drivers/video/cg6.c @@ -747,7 +747,7 @@ static void cg6_init_one(struct sbus_dev =20 list_add(&all->list, &cg6_list); =20 - printk("cg6: CGsix [%s] at %lx:%lx\n", + pr_info("cg6: CGsix [%s] at %lx:%lx\n", all->info.fix.id, (long) sdev->reg_addrs[0].which_io, (long) sdev->reg_addrs[0].phys_addr); Index: quilt/drivers/video/cirrusfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/cirrusfb.c +++ quilt/drivers/video/cirrusfb.c @@ -93,7 +93,7 @@ #ifndef CIRRUSFB_NDEBUG #define assert(expr) \ if(!(expr)) { \ - printk( "Assertion failed! %s,%s,%s,line=3D%d\n",\ + printk(KERN_DEBUG "Assertion failed! %s,%s,%s,line=3D%d\n",\ #expr,__FILE__,__FUNCTION__,__LINE__); \ } #else @@ -703,14 +703,14 @@ static int cirrusfb_check_var(struct fb_ den =3D 1; break; /* 4 bytes per pixel */ default: - printk ("cirrusfb: mode %dx%dx%d rejected...color depth not supported.\n= ", + printk (KERN_WARNING "cirrusfb: mode %dx%dx%d rejected...color depth not= supported.\n", var->xres, var->yres, var->bits_per_pixel); DPRINTK ("EXIT - EINVAL error\n"); return -EINVAL; } =20 if (var->xres * nom / den * var->yres > cinfo->size) { - printk ("cirrusfb: mode %dx%dx%d rejected...resolution too high to fit i= nto video memory!\n", + printk (KERN_WARNING "cirrusfb: mode %dx%dx%d rejected...resolution too = high to fit into video memory!\n", var->xres, var->yres, var->bits_per_pixel); DPRINTK ("EXIT - EINVAL error\n"); return -EINVAL; @@ -719,20 +719,20 @@ static int cirrusfb_check_var(struct fb_ /* use highest possible virtual resolution */ if (var->xres_virtual =3D=3D -1 && var->yres_virtual =3D=3D -1) { - printk ("cirrusfb: using maximum available virtual resolution\n"); + pr_info ("cirrusfb: using maximum available virtual resolution\n"); for (i =3D 0; modes[i].xres !=3D -1; i++) { if (modes[i].xres * nom / den * modes[i].yres < cinfo->size / 2) break; } if (modes[i].xres =3D=3D -1) { - printk ("cirrusfb: could not find a virtual resolution that fits into v= ideo memory!!\n"); + printk (KERN_WARNING "cirrusfb: could not find a virtual resolution tha= t fits into video memory!!\n"); DPRINTK ("EXIT - EINVAL error\n"); return -EINVAL; } var->xres_virtual =3D modes[i].xres; var->yres_virtual =3D modes[i].yres; =20 - printk ("cirrusfb: virtual resolution set to maximum of %dx%d\n", + pr_info ("cirrusfb: virtual resolution set to maximum of %dx%d\n", var->xres_virtual, var->yres_virtual); } =20 @@ -2169,7 +2169,7 @@ static unsigned int cirrusfb_get_memsize /* 64-bit DRAM data bus width; assume 2MB. Also indicates 2MB memory * on the 5430. */ case 0x18: mem =3D 2048 * 1024; break; - default: printk ("CLgenfb: Unknown memory size!\n"); + default: printk (KERN_WARNING "CLgenfb: Unknown memory size!\n"); mem =3D 1024 * 1024; } if (SRF & 0x80) { @@ -2354,7 +2354,7 @@ static void __devexit cirrusfb_cleanup ( =20 unregister_framebuffer (info); fb_dealloc_cmap (&info->cmap); - printk ("Framebuffer unregistered\n"); + pr_info ("Framebuffer unregistered\n"); cinfo->unmap(cinfo); =20 DPRINTK ("EXIT\n"); @@ -2439,6 +2439,9 @@ static int cirrusfb_pci_register (struct cinfo->size =3D board_size; cinfo->unmap =3D cirrusfb_pci_unmap; =20 + printk(KERN_INFO "cirrusfb: %s board detected; ", + cirrusfb_board_info[btype].name); + printk (" RAM (%lu kB) at 0xx%lx, ", cinfo->size / KB_, board_addr); printk ("Cirrus Logic chipset on PCI bus\n"); pci_set_drvdata(pdev, info); @@ -2531,7 +2534,7 @@ static int cirrusfb_zorro_register(struc goto err_release_fb; } =20 - printk (" RAM (%lu MB) at $%lx, ", board_size / MB_, board_addr); + pr_info (" RAM (%lu MB) at $%lx, ", board_size / MB_, board_addr); =20 ret =3D -EIO; =20 Index: quilt/drivers/video/clps711xfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/clps711xfb.c +++ quilt/drivers/video/clps711xfb.c @@ -385,7 +385,7 @@ int __init clps711xfb_init(void) clps7111fb_backlight_proc_entry =3D create_proc_entry("backlight", 0444, &proc_root); if (clps7111fb_backlight_proc_entry =3D=3D NULL) { - printk("Couldn't create the /proc entry for the backlight.\n"); + printk(KERN_ERR "Couldn't create the /proc entry for the backlight.\n"); return -EINVAL; } =20 Index: quilt/drivers/video/console/fbcon.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/console/fbcon.c +++ quilt/drivers/video/console/fbcon.c @@ -856,7 +856,7 @@ static const char *fbcon_startup(void) udelay(20); =20 if (ct =3D=3D 1000) - printk + pr_info ("fbcon_startup: No VBL detected, using timer based cursor.\n"); =20 free_irq(IRQ_MAC_VBL, fb_vbl_detect); Index: quilt/drivers/video/console/mdacon.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/console/mdacon.c +++ quilt/drivers/video/console/mdacon.c @@ -326,7 +326,7 @@ static const char __init *mdacon_startup mda_type_name =3D "MDA"; =20 if (! mda_detect()) { - printk("mdacon: MDA card not detected.\n"); + pr_info("mdacon: MDA card not detected.\n"); return NULL; } =20 @@ -337,7 +337,7 @@ static const char __init *mdacon_startup /* cursor looks ugly during boot-up, so turn it off */ mda_set_cursor(mda_vram_len - 1); =20 - printk("mdacon: %s with %ldK of memory detected.\n", + pr_info("mdacon: %s with %ldK of memory detected.\n", mda_type_name, mda_vram_len/1024); =20 return "MDA-2"; Index: quilt/drivers/video/console/newport_con.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/console/newport_con.c +++ quilt/drivers/video/console/newport_con.c @@ -231,7 +231,7 @@ void newport_get_screensize(void) newport_ysize +=3D linetable[i + 1]; } } - printk("NG1: Screensize %dx%d\n", newport_xsize, newport_ysize); + pr_info("NG1: Screensize %dx%d\n", newport_xsize, newport_ysize); } =20 static void newport_get_revisions(void) @@ -274,7 +274,7 @@ static void newport_get_revisions(void) bt445_rev =3D (npregs->set.dcbdata0.bybytes.b3 >> 4) - 0x0a; =20 #define L(a) (char)('A'+(a)) - printk + pr_info ("NG1: Revision %d, %d bitplanes, REX3 revision %c, VC2 revision %c, = xmap9 revision %c, cmap revision %c, bt445 revision %c\n", board_rev, bitplanes, L(rex3_rev), L(vc2_rev), L(xmap9_rev), L(cmap_rev ? (cmap_rev + 1) : 0), L(bt445_rev)); Index: quilt/drivers/video/cyber2000fb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/cyber2000fb.c +++ quilt/drivers/video/cyber2000fb.c @@ -1373,7 +1373,7 @@ static int __devinit cyberpro_common_pro err =3D -EINVAL; if (!fb_find_mode(&cfb->fb.var, &cfb->fb, NULL, NULL, 0, &cyber2000fb_default_mode, 8)) { - printk("%s: no valid mode found\n", cfb->fb.fix.id); + printk(KERN_ERR "%s: no valid mode found\n", cfb->fb.fix.id); goto failed; } =20 Index: quilt/drivers/video/dnfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/dnfb.c +++ quilt/drivers/video/dnfb.c @@ -266,7 +266,7 @@ static int __devinit dnfb_probe(struct d out_8(AP_CONTROL_2, S_DATA_PLN); out_be16(AP_ROP_1, SWAP(0x3)); =20 - printk("apollo frame buffer alive and kicking !\n"); + pr_info("apollo frame buffer initialized\n"); return err; } =20 Index: quilt/drivers/video/fbmem.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/fbmem.c +++ quilt/drivers/video/fbmem.c @@ -1195,7 +1195,7 @@ fbmem_init(void) =20 devfs_mk_dir("fb"); if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) - printk("unable to get major %d for fb devs\n", FB_MAJOR); + printk(KERN_WARNING "unable to get major %d for fb devs\n", FB_MAJOR); =20 fb_class =3D class_simple_create(THIS_MODULE, "graphics"); if (IS_ERR(fb_class)) { Index: quilt/drivers/video/fbmon.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/fbmon.c +++ quilt/drivers/video/fbmon.c @@ -43,7 +43,7 @@ #undef DEBUG /* define this for verbose EDID parsing output */ =20 #ifdef DEBUG -#define DPRINTK(fmt, args...) printk(fmt,## args) +#define DPRINTK(fmt, args...) pr_debug("%s(): ", fmt, __FUNCTION__, ## arg= s) #else #define DPRINTK(fmt, args...) #endif @@ -104,7 +104,7 @@ static int check_edid(unsigned char *edi for (i =3D 0; i < ARRAY_SIZE(brokendb); i++) { if (!strncmp(manufacturer, brokendb[i].manufacturer, 4) && brokendb[i].model =3D=3D model) { - printk("fbmon: The EDID Block of " + pr_info("fbmon: The EDID Block of " "Manufacturer: %s Model: 0x%x is known to " "be broken,\n", manufacturer, model); fix =3D brokendb[i].fix; @@ -137,11 +137,11 @@ static void fix_edid(unsigned char *edid =20 switch (fix) { case FBMON_FIX_HEADER: - printk("fbmon: trying a header reconstruct\n"); + pr_info("fbmon: trying a header reconstruct\n"); memcpy(edid, edid_v1_header, 8); break; case FBMON_FIX_INPUT: - printk("fbmon: trying to fix input type\n"); + pr_info("fbmon: trying to fix input type\n"); b =3D edid + EDID_STRUCT_DISPLAY; b[0] &=3D ~0x80; edid[127] +=3D 0x80; @@ -764,7 +764,7 @@ static void get_monspecs(unsigned char * specs->misc |=3D FB_MISC_1ST_DETAIL; } if (c & 0x01) { - printk(" Display is GTF capable\n"); + DPRINTK(" Display is GTF capable\n"); specs->gtf =3D 1; } } Index: quilt/drivers/video/ffb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/ffb.c +++ quilt/drivers/video/ffb.c @@ -934,12 +934,12 @@ static void ffb_init_one(int node, int p struct all_info *all; =20 if (prom_getproperty(node, "reg", (void *) regs, sizeof(regs)) <=3D 0) { - printk("ffb: Cannot get reg device node property.\n"); + printk(KERN_ERR "ffb: Cannot get reg device node property.\n"); return; } =20 if (ffb_apply_upa_parent_ranges(parent, ®s[0])) { - printk("ffb: Cannot apply parent ranges to regs.\n"); + printk(KERN_ERR "ffb: Cannot apply parent ranges to regs.\n"); return; } =20 @@ -1026,7 +1026,7 @@ static void ffb_init_one(int node, int p =20 list_add(&all->list, &ffb_list); =20 - printk("ffb: %s at %016lx type %d DAC %d\n", + pr_info("ffb: %s at %016lx type %d DAC %d\n", ((all->par.flags & FFB_FLAG_AFB) ? "AFB" : "FFB"), regs[0].phys_addr, all->par.board_type, all->par.dac_rev); } Index: quilt/drivers/video/fm2fb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/fm2fb.c +++ quilt/drivers/video/fm2fb.c @@ -288,7 +288,7 @@ static int __devinit fm2fb_probe(struct=20 zorro_release_device(z); return -EINVAL; } - printk("fb%d: %s frame buffer device\n", info->node, fb_fix.id); + pr_info("fb%d: %s frame buffer device\n", info->node, fb_fix.id); return 0; } =20 Index: quilt/drivers/video/igafb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/igafb.c +++ quilt/drivers/video/igafb.c @@ -364,7 +364,7 @@ static int __init iga_init(struct fb_inf if (register_framebuffer(info) < 0) return 0; =20 - printk("fb%d: %s frame buffer device at 0x%08lx [%dMB VRAM]\n", + pr_info("fb%d: %s frame buffer device at 0x%08lx [%dMB VRAM]\n", info->node, info->fix.id,=20 par->frame_buffer_phys, info->fix.smem_len >> 20); =20 @@ -406,7 +406,7 @@ int __init igafb_init(void) =20 info =3D kmalloc(size, GFP_ATOMIC); if (!info) { - printk("igafb_init: can't alloc fb_info\n"); + printk(KERN_ERR "igafb_init: can't alloc fb_info\n"); return -ENOMEM; } memset(info, 0, size); @@ -415,13 +415,13 @@ int __init igafb_init(void) =09 =20 if ((addr =3D pdev->resource[0].start) =3D=3D 0) { - printk("igafb_init: no memory start\n"); + printk(KERN_ERR "igafb_init: no memory start\n"); kfree(info); return -ENXIO; } =20 if ((info->screen_base =3D ioremap(addr, 1024*1024*2)) =3D=3D 0) { - printk("igafb_init: can't remap %lx[2M]\n", addr); + printk(KERN_ERR "igafb_init: can't remap %lx[2M]\n", addr); kfree(info); return -ENXIO; } @@ -454,7 +454,7 @@ int __init igafb_init(void) igafb_fix.mmio_start =3D 0x30000000; /* XXX */ } if ((par->io_base =3D (int) ioremap(igafb_fix.mmio_start, igafb_fix.smem_= len)) =3D=3D 0) { - printk("igafb_init: can't remap %lx[4K]\n", igafb_fix.mmio= _start); + printk(KERN_ERR "igafb_init: can't remap %lx[4K]\n", igafb= _fix.mmio_start); iounmap((void *)info->screen_base); kfree(info); return -ENXIO; @@ -470,7 +470,7 @@ int __init igafb_init(void) =20 par->mmap_map =3D kmalloc(4 * sizeof(*par->mmap_map), GFP_ATOMIC); if (!par->mmap_map) { - printk("igafb_init: can't alloc mmap_map\n"); + printk(KERN_ERR "igafb_init: can't alloc mmap_map\n"); iounmap((void *)par->io_base); iounmap(info->screen_base); kfree(info); Index: quilt/drivers/video/imsttfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/imsttfb.c +++ quilt/drivers/video/imsttfb.c @@ -1413,7 +1413,8 @@ init_imstt(struct fb_info *info) =20 if ((info->var.xres * info->var.yres) * (info->var.bits_per_pixel >> 3) >= info->fix.smem_len || !(compute_imstt_regvals(par, info->var.xres, info->var.yres))) { - printk("imsttfb: %ux%ux%u not supported\n", info->var.xres, info->var.yr= es, info->var.bits_per_pixel); + printk(KERN_ERR "imsttfb: %ux%ux%u not supported\n", + info->var.xres, info->var.yres, info->var.bits_per_pixel); kfree(info); return; } @@ -1455,7 +1456,7 @@ init_imstt(struct fb_info *info) } =20 tmp =3D (read_reg_le32(par->dc_regs, SSTATUS) & 0x0f00) >> 8; - printk("fb%u: %s frame buffer; %uMB vram; chip version %u\n", + pr_info("fb%u: %s frame buffer; %uMB vram; chip version %u\n", info->node, info->fix.id, info->fix.smem_len >> 20, tmp); } =20 Index: quilt/drivers/video/intelfb/intelfbhw.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/intelfb/intelfbhw.c +++ quilt/drivers/video/intelfb/intelfbhw.c @@ -540,10 +540,10 @@ intelfbhw_print_hw_state(struct intelfb_ if (!hw || !dinfo) return; /* Read in as much of the HW state as possible. */ - printk("hw state dump start\n"); - printk(" VGA0_DIVISOR: 0x%08x\n", hw->vga0_divisor); - printk(" VGA1_DIVISOR: 0x%08x\n", hw->vga1_divisor); - printk(" VGAPD: 0x%08x\n", hw->vga_pd); + pr_info("hw state dump start\n"); + pr_info(" VGA0_DIVISOR: 0x%08x\n", hw->vga0_divisor); + pr_info(" VGA1_DIVISOR: 0x%08x\n", hw->vga1_divisor); + pr_info(" VGAPD: 0x%08x\n", hw->vga_pd); n =3D (hw->vga0_divisor >> FP_N_DIVISOR_SHIFT) & FP_DIVISOR_MASK; m1 =3D (hw->vga0_divisor >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; m2 =3D (hw->vga0_divisor >> FP_M2_DIVISOR_SHIFT) & FP_DIVISOR_MASK; @@ -552,9 +552,9 @@ intelfbhw_print_hw_state(struct intelfb_ else p1 =3D (hw->vga_pd >> VGAPD_0_P1_SHIFT) & DPLL_P1_MASK; p2 =3D (hw->vga_pd >> VGAPD_0_P2_SHIFT) & DPLL_P2_MASK; - printk(" VGA0: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", + pr_info(" VGA0: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", m1, m2, n, p1, p2); - printk(" VGA0: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); + pr_info(" VGA0: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); =20 n =3D (hw->vga1_divisor >> FP_N_DIVISOR_SHIFT) & FP_DIVISOR_MASK; m1 =3D (hw->vga1_divisor >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; @@ -564,16 +564,16 @@ intelfbhw_print_hw_state(struct intelfb_ else p1 =3D (hw->vga_pd >> VGAPD_1_P1_SHIFT) & DPLL_P1_MASK; p2 =3D (hw->vga_pd >> VGAPD_1_P2_SHIFT) & DPLL_P2_MASK; - printk(" VGA1: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", + pr_info(" VGA1: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", m1, m2, n, p1, p2); - printk(" VGA1: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); + pr_info(" VGA1: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); =20 - printk(" DPLL_A: 0x%08x\n", hw->dpll_a); - printk(" DPLL_B: 0x%08x\n", hw->dpll_b); - printk(" FPA0: 0x%08x\n", hw->fpa0); - printk(" FPA1: 0x%08x\n", hw->fpa1); - printk(" FPB0: 0x%08x\n", hw->fpb0); - printk(" FPB1: 0x%08x\n", hw->fpb1); + pr_info(" DPLL_A: 0x%08x\n", hw->dpll_a); + pr_info(" DPLL_B: 0x%08x\n", hw->dpll_b); + pr_info(" FPA0: 0x%08x\n", hw->fpa0); + pr_info(" FPA1: 0x%08x\n", hw->fpa1); + pr_info(" FPB0: 0x%08x\n", hw->fpb0); + pr_info(" FPB1: 0x%08x\n", hw->fpb1); =20 n =3D (hw->fpa0 >> FP_N_DIVISOR_SHIFT) & FP_DIVISOR_MASK; m1 =3D (hw->fpa0 >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; @@ -583,9 +583,9 @@ intelfbhw_print_hw_state(struct intelfb_ else p1 =3D (hw->dpll_a >> DPLL_P1_SHIFT) & DPLL_P1_MASK; p2 =3D (hw->dpll_a >> DPLL_P2_SHIFT) & DPLL_P2_MASK; - printk(" PLLA0: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", + pr_info(" PLLA0: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", m1, m2, n, p1, p2); - printk(" PLLA0: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); + pr_info(" PLLA0: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); =20 n =3D (hw->fpa1 >> FP_N_DIVISOR_SHIFT) & FP_DIVISOR_MASK; m1 =3D (hw->fpa1 >> FP_M1_DIVISOR_SHIFT) & FP_DIVISOR_MASK; @@ -595,62 +595,62 @@ intelfbhw_print_hw_state(struct intelfb_ else p1 =3D (hw->dpll_a >> DPLL_P1_SHIFT) & DPLL_P1_MASK; p2 =3D (hw->dpll_a >> DPLL_P2_SHIFT) & DPLL_P2_MASK; - printk(" PLLA1: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", + pr_info(" PLLA1: (m1, m2, n, p1, p2) =3D (%d, %d, %d, %d, %d)\n", m1, m2, n, p1, p2); - printk(" PLLA1: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); + pr_info(" PLLA1: clock is %d\n", CALC_VCLOCK(m1, m2, n, p1, p2)); =20 #if 0 - printk(" PALETTE_A:\n"); + pr_info(" PALETTE_A:\n"); for (i =3D 0; i < PALETTE_8_ENTRIES) - printk(" %3d: 0x%08x\n", i, hw->palette_a[i]; - printk(" PALETTE_B:\n"); + pr_info(" %3d: 0x%08x\n", i, hw->palette_a[i]; + pr_info(" PALETTE_B:\n"); for (i =3D 0; i < PALETTE_8_ENTRIES) - printk(" %3d: 0x%08x\n", i, hw->palette_b[i]; + pr_info(" %3d: 0x%08x\n", i, hw->palette_b[i]; #endif =20 - printk(" HTOTAL_A: 0x%08x\n", hw->htotal_a); - printk(" HBLANK_A: 0x%08x\n", hw->hblank_a); - printk(" HSYNC_A: 0x%08x\n", hw->hsync_a); - printk(" VTOTAL_A: 0x%08x\n", hw->vtotal_a); - printk(" VBLANK_A: 0x%08x\n", hw->vblank_a); - printk(" VSYNC_A: 0x%08x\n", hw->vsync_a); - printk(" SRC_SIZE_A: 0x%08x\n", hw->src_size_a); - printk(" BCLRPAT_A: 0x%08x\n", hw->bclrpat_a); - printk(" HTOTAL_B: 0x%08x\n", hw->htotal_b); - printk(" HBLANK_B: 0x%08x\n", hw->hblank_b); - printk(" HSYNC_B: 0x%08x\n", hw->hsync_b); - printk(" VTOTAL_B: 0x%08x\n", hw->vtotal_b); - printk(" VBLANK_B: 0x%08x\n", hw->vblank_b); - printk(" VSYNC_B: 0x%08x\n", hw->vsync_b); - printk(" SRC_SIZE_B: 0x%08x\n", hw->src_size_b); - printk(" BCLRPAT_B: 0x%08x\n", hw->bclrpat_b); - - printk(" ADPA: 0x%08x\n", hw->adpa); - printk(" DVOA: 0x%08x\n", hw->dvoa); - printk(" DVOB: 0x%08x\n", hw->dvob); - printk(" DVOC: 0x%08x\n", hw->dvoc); - printk(" DVOA_SRCDIM: 0x%08x\n", hw->dvoa_srcdim); - printk(" DVOB_SRCDIM: 0x%08x\n", hw->dvob_srcdim); - printk(" DVOC_SRCDIM: 0x%08x\n", hw->dvoc_srcdim); - printk(" LVDS: 0x%08x\n", hw->lvds); - - printk(" PIPEACONF: 0x%08x\n", hw->pipe_a_conf); - printk(" PIPEBCONF: 0x%08x\n", hw->pipe_b_conf); - printk(" DISPARB: 0x%08x\n", hw->disp_arb); - - printk(" CURSOR_A_CONTROL: 0x%08x\n", hw->cursor_a_control); - printk(" CURSOR_B_CONTROL: 0x%08x\n", hw->cursor_b_control); - printk(" CURSOR_A_BASEADDR: 0x%08x\n", hw->cursor_a_base); - printk(" CURSOR_B_BASEADDR: 0x%08x\n", hw->cursor_b_base); + pr_info(" HTOTAL_A: 0x%08x\n", hw->htotal_a); + pr_info(" HBLANK_A: 0x%08x\n", hw->hblank_a); + pr_info(" HSYNC_A: 0x%08x\n", hw->hsync_a); + pr_info(" VTOTAL_A: 0x%08x\n", hw->vtotal_a); + pr_info(" VBLANK_A: 0x%08x\n", hw->vblank_a); + pr_info(" VSYNC_A: 0x%08x\n", hw->vsync_a); + pr_info(" SRC_SIZE_A: 0x%08x\n", hw->src_size_a); + pr_info(" BCLRPAT_A: 0x%08x\n", hw->bclrpat_a); + pr_info(" HTOTAL_B: 0x%08x\n", hw->htotal_b); + pr_info(" HBLANK_B: 0x%08x\n", hw->hblank_b); + pr_info(" HSYNC_B: 0x%08x\n", hw->hsync_b); + pr_info(" VTOTAL_B: 0x%08x\n", hw->vtotal_b); + pr_info(" VBLANK_B: 0x%08x\n", hw->vblank_b); + pr_info(" VSYNC_B: 0x%08x\n", hw->vsync_b); + pr_info(" SRC_SIZE_B: 0x%08x\n", hw->src_size_b); + pr_info(" BCLRPAT_B: 0x%08x\n", hw->bclrpat_b); + + pr_info(" ADPA: 0x%08x\n", hw->adpa); + pr_info(" DVOA: 0x%08x\n", hw->dvoa); + pr_info(" DVOB: 0x%08x\n", hw->dvob); + pr_info(" DVOC: 0x%08x\n", hw->dvoc); + pr_info(" DVOA_SRCDIM: 0x%08x\n", hw->dvoa_srcdim); + pr_info(" DVOB_SRCDIM: 0x%08x\n", hw->dvob_srcdim); + pr_info(" DVOC_SRCDIM: 0x%08x\n", hw->dvoc_srcdim); + pr_info(" LVDS: 0x%08x\n", hw->lvds); + + pr_info(" PIPEACONF: 0x%08x\n", hw->pipe_a_conf); + pr_info(" PIPEBCONF: 0x%08x\n", hw->pipe_b_conf); + pr_info(" DISPARB: 0x%08x\n", hw->disp_arb); + + pr_info(" CURSOR_A_CONTROL: 0x%08x\n", hw->cursor_a_control); + pr_info(" CURSOR_B_CONTROL: 0x%08x\n", hw->cursor_b_control); + pr_info(" CURSOR_A_BASEADDR: 0x%08x\n", hw->cursor_a_base); + pr_info(" CURSOR_B_BASEADDR: 0x%08x\n", hw->cursor_b_base); =20 - printk(" CURSOR_A_PALETTE: "); + pr_info(" CURSOR_A_PALETTE: "); for (i =3D 0; i < 4; i++) { printk("0x%08x", hw->cursor_a_palette[i]); if (i < 3) printk(", "); } printk("\n"); - printk(" CURSOR_B_PALETTE: "); + pr_info(" CURSOR_B_PALETTE: "); for (i =3D 0; i < 4; i++) { printk("0x%08x", hw->cursor_b_palette[i]); if (i < 3) @@ -658,40 +658,40 @@ intelfbhw_print_hw_state(struct intelfb_ } printk("\n"); =20 - printk(" CURSOR_SIZE: 0x%08x\n", hw->cursor_size); + pr_info(" CURSOR_SIZE: 0x%08x\n", hw->cursor_size); =20 - printk(" DSPACNTR: 0x%08x\n", hw->disp_a_ctrl); - printk(" DSPBCNTR: 0x%08x\n", hw->disp_b_ctrl); - printk(" DSPABASE: 0x%08x\n", hw->disp_a_base); - printk(" DSPBBASE: 0x%08x\n", hw->disp_b_base); - printk(" DSPASTRIDE: 0x%08x\n", hw->disp_a_stride); - printk(" DSPBSTRIDE: 0x%08x\n", hw->disp_b_stride); + pr_info(" DSPACNTR: 0x%08x\n", hw->disp_a_ctrl); + pr_info(" DSPBCNTR: 0x%08x\n", hw->disp_b_ctrl); + pr_info(" DSPABASE: 0x%08x\n", hw->disp_a_base); + pr_info(" DSPBBASE: 0x%08x\n", hw->disp_b_base); + pr_info(" DSPASTRIDE: 0x%08x\n", hw->disp_a_stride); + pr_info(" DSPBSTRIDE: 0x%08x\n", hw->disp_b_stride); =20 - printk(" VGACNTRL: 0x%08x\n", hw->vgacntrl); - printk(" ADD_ID: 0x%08x\n", hw->add_id); + pr_info(" VGACNTRL: 0x%08x\n", hw->vgacntrl); + pr_info(" ADD_ID: 0x%08x\n", hw->add_id); =20 for (i =3D 0; i < 7; i++) { - printk(" SWF0%d 0x%08x\n", i, + pr_info(" SWF0%d 0x%08x\n", i, hw->swf0x[i]); } for (i =3D 0; i < 7; i++) { - printk(" SWF1%d 0x%08x\n", i, + pr_info(" SWF1%d 0x%08x\n", i, hw->swf1x[i]); } for (i =3D 0; i < 3; i++) { - printk(" SWF3%d 0x%08x\n", i, + pr_info(" SWF3%d 0x%08x\n", i, hw->swf3x[i]); } for (i =3D 0; i < 8; i++) - printk(" FENCE%d 0x%08x\n", i, + pr_info(" FENCE%d 0x%08x\n", i, hw->fence[i]); =20 - printk(" INSTPM 0x%08x\n", hw->instpm); - printk(" MEM_MODE 0x%08x\n", hw->mem_mode); - printk(" FW_BLC_0 0x%08x\n", hw->fw_blc_0); - printk(" FW_BLC_1 0x%08x\n", hw->fw_blc_1); + pr_info(" INSTPM 0x%08x\n", hw->instpm); + pr_info(" MEM_MODE 0x%08x\n", hw->mem_mode); + pr_info(" FW_BLC_0 0x%08x\n", hw->fw_blc_0); + pr_info(" FW_BLC_1 0x%08x\n", hw->fw_blc_1); =20 - printk("hw state dump end\n"); + pr_info("hw state dump end\n"); #endif } =20 Index: quilt/drivers/video/kyro/fbdev.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/kyro/fbdev.c +++ quilt/drivers/video/kyro/fbdev.c @@ -746,7 +746,7 @@ static int __devinit kyrofb_probe(struct if (register_framebuffer(info) < 0) goto out_unmap; =20 - printk("fb%d: %s frame buffer device, at %dx%d@%d using %ldk/%ldk of VRAM= \n", + pr_info("fb%d: %s frame buffer device, at %dx%d@%d using %ldk/%ldk of VRA= M\n", info->node, info->fix.id, info->var.xres, info->var.yres, info->var.bits_per_pixel, size >> 10, (unsigned long)info->fix.smem_len >> 10); Index: quilt/drivers/video/leo.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/leo.c +++ quilt/drivers/video/leo.c @@ -614,7 +614,7 @@ static void leo_init_one(struct sbus_dev =20 list_add(&all->list, &leo_list); =20 - printk("leo: %s at %lx:%lx\n", + pr_info("leo: %s at %lx:%lx\n", sdev->prom_name, (long) sdev->reg_addrs[0].which_io, (long) sdev->reg_addrs[0].phys_addr); Index: quilt/drivers/video/macfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/macfb.c +++ quilt/drivers/video/macfb.c @@ -639,9 +639,9 @@ void __init macfb_init(void) Mac */ fb_info.screen_base =3D ioremap(mac_bi_data.videoaddr, macfb_fix.smem_len= ); =09 - printk("macfb: framebuffer at 0x%08lx, mapped to 0x%p, size %dk\n", + pr_info("macfb: framebuffer at 0x%08lx, mapped to 0x%p, size %dk\n", macfb_fix.smem_start, fb_info.screen_base, macfb_fix.smem_len/1024= ); - printk("macfb: mode is %dx%dx%d, linelength=3D%d\n", + pr_info("macfb: mode is %dx%dx%d, linelength=3D%d\n", macfb_defined.xres, macfb_defined.yres, macfb_defined.bits_per_pix= el, macfb_fix.line_length); =09 /* @@ -653,7 +653,7 @@ void __init macfb_init(void) macfb_defined.height =3D PIXEL_TO_MM(macfb_defined.yres); macfb_defined.width =3D PIXEL_TO_MM(macfb_defined.xres); =20 =20 - printk("macfb: scrolling: redraw\n"); + pr_info("macfb: scrolling: redraw\n"); macfb_defined.yres_virtual =3D macfb_defined.yres; =20 /* some dummy values for timing to make fbset happy */ @@ -689,7 +689,7 @@ void __init macfb_init(void) macfb_defined.green.length =3D 5; macfb_defined.blue.offset =3D 0; macfb_defined.blue.length =3D 5; - printk("macfb: directcolor: " + pr_info("macfb: directcolor: " "size=3D1:5:5:5, shift=3D15:10:5:0\n"); video_cmap_len =3D 16; /* Should actually be FB_VISUAL_DIRECTCOLOR, but this @@ -706,14 +706,14 @@ void __init macfb_init(void) macfb_defined.green.length =3D 8; macfb_defined.blue.offset =3D 0; macfb_defined.blue.length =3D 8; - printk("macfb: truecolor: " + pr_info("macfb: truecolor: " "size=3D0:8:8:8, shift=3D0:16:8:0\n"); video_cmap_len =3D 16; macfb_fix.visual =3D FB_VISUAL_TRUECOLOR; default: video_cmap_len =3D 0; macfb_fix.visual =3D FB_VISUAL_MONO01; - printk("macfb: unknown or unsupported bit depth: %d\n", macfb_defined.bi= ts_per_pixel); + printk(KERN_WARNING "macfb: unknown or unsupported bit depth: %d\n", mac= fb_defined.bits_per_pixel); break; } =09 @@ -962,7 +962,7 @@ void __init macfb_init(void) if (register_framebuffer(&fb_info) < 0) return; =20 - printk("fb%d: %s frame buffer device\n", + pr_info("fb%d: %s frame buffer device\n", fb_info.node, fb_info.fix.id); } =20 Index: quilt/drivers/video/matrox/matroxfb_base.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/matrox/matroxfb_base.c +++ quilt/drivers/video/matrox/matroxfb_base.c @@ -1880,7 +1880,7 @@ static int initMatrox2(WPMINFO struct bo if (register_framebuffer(&ACCESS_FBINFO(fbcon)) < 0) { goto failVideoIO; } - printk("fb%d: %s frame buffer device\n", + pr_info("fb%d: %s frame buffer device\n", ACCESS_FBINFO(fbcon.node), ACCESS_FBINFO(fbcon.fix.id)); =20 /* there is no console on this fb... but we have to initialize hardware Index: quilt/drivers/video/modedb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/modedb.c +++ quilt/drivers/video/modedb.c @@ -24,7 +24,7 @@ ((v).xres =3D=3D (x) && (v).yres =3D=3D (y)) =20 #ifdef DEBUG -#define DPRINTK(fmt, args...) printk("modedb %s: " fmt, __FUNCTION__ , ## = args) +#define DPRINTK(fmt, args...) pr_debug("modedb %s: " fmt, __FUNCTION__ , #= # args) #else #define DPRINTK(fmt, args...) #endif Index: quilt/drivers/video/neofb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/neofb.c +++ quilt/drivers/video/neofb.c @@ -252,7 +252,7 @@ static void neoCalcVCLK(const struct fb_ par->VCLK3Denominator =3D d_best; =20 #ifdef NEOFB_DEBUG - printk("neoVCLK: f:%d NumLow=3D%d NumHi=3D%d Den=3D%d Df=3D%d\n", + printk(KERN_DEBUG "neoVCLK: f:%d NumLow=3D%d NumHi=3D%d Den=3D%d Df=3D%d\= n", f_target >> 12, par->VCLK3NumeratorLow, par->VCLK3NumeratorHigh, @@ -1716,13 +1716,13 @@ static int __devinit neo_map_mmio(struct =20 if (!request_mem_region (info->fix.mmio_start, MMIO_SIZE, "memory mapped I/O")) { - printk("neofb: memory mapped IO in use\n"); + printk(KERN_ERR "neofb: memory mapped IO in use\n"); return -EBUSY; } =20 par->mmio_vbase =3D ioremap(info->fix.mmio_start, MMIO_SIZE); if (!par->mmio_vbase) { - printk("neofb: unable to map memory mapped IO\n"); + printk(KERN_ERR "neofb: unable to map memory mapped IO\n"); release_mem_region(info->fix.mmio_start, info->fix.mmio_len); return -ENOMEM; @@ -1757,14 +1757,14 @@ static int __devinit neo_map_video(struc =20 if (!request_mem_region(info->fix.smem_start, info->fix.smem_len, "frame buffer")) { - printk("neofb: frame buffer in use\n"); + printk(KERN_WARNING "neofb: frame buffer in use\n"); return -EBUSY; } =20 info->screen_base =3D ioremap(info->fix.smem_start, info->fix.smem_len); if (!info->screen_base) { - printk("neofb: unable to map screen memory\n"); + printk(KERN_ERR "neofb: unable to map screen memory\n"); release_mem_region(info->fix.smem_start, info->fix.smem_len); return -ENOMEM; Index: quilt/drivers/video/p9100.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/p9100.c +++ quilt/drivers/video/p9100.c @@ -326,7 +326,7 @@ static void p9100_init_one(struct sbus_d =20 list_add(&all->list, &p9100_list); =20 - printk("p9100: %s at %lx:%lx\n", + pr_info("p9100: %s at %lx:%lx\n", sdev->prom_name, (long) sdev->reg_addrs[0].which_io, (long) sdev->reg_addrs[0].phys_addr); Index: quilt/drivers/video/platinumfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/platinumfb.c +++ quilt/drivers/video/platinumfb.c @@ -146,7 +146,7 @@ static int platinumfb_set_par (struct fb info->fix.visual =3D (pinfo->cmode =3D=3D CMODE_8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_DIRECTCOLOR; info->fix.line_length =3D vmode_attrs[pinfo->vmode-1].hres * (1<c= mode) + offset; - printk("line_length: %x\n", info->fix.line_length); + printk(KERN_DEBUG "line_length: %x\n", info->fix.line_length); return 0; } =20 @@ -362,12 +362,12 @@ static int __devinit platinum_init_fb(st platinum_vram_reqd(default_vmode, default_cmode) > pinfo->total_vra= m) default_cmode--; =20 - printk("platinumfb: Using video mode %d and color mode %d.\n", default_v= mode, default_cmode); + pr_info("platinumfb: Using video mode %d and color mode %d.\n", default_= vmode, default_cmode); =20 /* Setup default var */ if (mac_vmode_to_var(default_vmode, default_cmode, &var) < 0) { /* This shouldn't happen! */ - printk("mac_vmode_to_var(%d, %d,) failed\n", default_vmode, default_cmod= e); + printk(KERN_ERR "mac_vmode_to_var(%d, %d,) failed\n", default_vmode, def= ault_cmode); try_again: default_vmode =3D VMODE_640_480_60; default_cmode =3D CMODE_8; Index: quilt/drivers/video/pm3fb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/pm3fb.c +++ quilt/drivers/video/pm3fb.c @@ -1576,7 +1576,7 @@ static void pm3fb_common_init(struct pm3 =09 pm3fb_write_mode(l_fb_info); =09 - printk("fb%d: %s, using %uK of video memory (%s)\n", + pr_info("fb%d: %s, using %uK of video memory (%s)\n", l_fb_info->gen.info.node, permedia3_name, (u32) (l_fb_info->fb_size >> 10), cardbase[l_fb_info->board_type].cardname); Index: quilt/drivers/video/pmag-ba-fb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/pmag-ba-fb.c +++ quilt/drivers/video/pmag-ba-fb.c @@ -126,7 +126,7 @@ int __init pmagbafb_init_one(int slot) struct fb_info *info =3D &pmagba_fb_info[slot];=20 struct display *disp =3D &pmagba_disp[slot]; =20 - printk("PMAG-BA framebuffer in slot %d\n", slot); + pr_info("PMAG-BA framebuffer in slot %d\n", slot); /* * Framebuffer display memory base address and friends */ Index: quilt/drivers/video/pmagb-b-fb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/pmagb-b-fb.c +++ quilt/drivers/video/pmagb-b-fb.c @@ -126,7 +126,7 @@ int __init pmagbbfb_init_one(int slot) unsigned long base_addr =3D get_tc_base_addr(slot); struct fb_info *info =3D &pmagbb_fb_info[slot]; =20 - printk("PMAGB-BA framebuffer in slot %d\n", slot); + pr_info("PMAGB-BA framebuffer in slot %d\n", slot); /* * Framebuffer display memory base address and friends */ Index: quilt/drivers/video/pvr2fb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/pvr2fb.c +++ quilt/drivers/video/pvr2fb.c @@ -818,10 +818,10 @@ static int __init pvr2fb_common_init(voi =20 rev =3D fb_readl(par->mmio_base + 0x04); =20 - printk("fb%d: %s (rev %ld.%ld) frame buffer device, using %ldk/%ldk of vi= deo memory\n", + pr_info("fb%d: %s (rev %ld.%ld) frame buffer device, using %ldk/%ldk of v= ideo memory\n", fb_info->node, fb_info->fix.id, (rev >> 4) & 0x0f, rev & 0x0f, modememused >> 10, (unsigned long)(fb_info->fix.smem_len >> 10)); - printk("fb%d: Mode %dx%d-%d pitch =3D %ld cable: %s video output: %s\n", = + pr_info("fb%d: Mode %dx%d-%d pitch =3D %ld cable: %s video output: %s\n", fb_info->node, fb_info->var.xres, fb_info->var.yres, fb_info->var.bits_per_pixel,=20 get_line_length(fb_info->var.xres, fb_info->var.bits_per_pixel), Index: quilt/drivers/video/radeonfb.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- quilt.orig/drivers/video/radeonfb.c +++ quilt/drivers/video/radeonfb.c @@ -28,6 +28,7 @@ * */ =20 +#define DEBUG =20 #define RADEON_VERSION "0.1.6" =20 @@ -80,13 +81,7 @@ #include