]> git.hungrycats.org Git - linux/commitdiff
[PATCH] change two annoying messages from framebuffer drivers
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:46:56 +0000 (23:46 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:46:56 +0000 (23:46 -0800)
From: Michael Hunold <hunold@convergence.de>

the Linux-on-a-CD system Knoppix has nearly all framebuffer drivers for
2.4.23 compiled in. Additionally, it surpresses most kernel messages by
lowering the kernel log level.

Two framebuffer drivers (clgenfb.c and hgafb.c), however, use KERN_ERR
to say that their particular card has *not* been found which is very
annoying.

Especially the clgenfb.c driver simply says on bootup:
  >  Couldn't find PCI device
which can really confuse newbie users.

I've already send a patch that fixes this for 2.4 -- Marcelo and Geert
Uytterhoeven have already ack'ed it.

The same change should be done for 2.6, too IMHO.

The appended patch replaces two KERN_ERR with KERN_INFO and additionally
makes the cirrusfb.c message more descriptive.

drivers/video/cirrusfb.c
drivers/video/hgafb.c

index cec5a7d9de27746b52491f91e8d06f4e29e5ff43..ec9e0a77d6f712ca624b5066bd1ded79131b1338 100644 (file)
@@ -2528,7 +2528,7 @@ static int __init clgen_pci_setup (struct clgenfb_info *info,
 
        pdev = clgen_pci_dev_get (btype);
        if (!pdev) {
-               printk (KERN_ERR " Couldn't find PCI device\n");
+               printk (KERN_INFO "cirrusfb: couldn't find Cirrus Logic PCI device\n");
                DPRINTK ("EXIT, returning 1\n");
                return 1;
        }
index 79e5e860ab3a1a5135fdd3e32b3fd4bdb50e2f0a..617734e46688f182e049df70f6d5e74607729f20 100644 (file)
@@ -539,7 +539,7 @@ static struct fb_ops hgafb_ops = {
 int __init hgafb_init(void)
 {
        if (! hga_card_detect()) {
-               printk(KERN_ERR "hgafb: HGA card not detected.\n");
+               printk(KERN_INFO "hgafb: HGA card not detected.\n");
                return -EINVAL;
        }