linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][2.4] change two annoying messages from framebuffer drivers
@ 2003-12-12 12:57 Michael Hunold
  2003-12-15 10:10 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Hunold @ 2003-12-12 12:57 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: marcelo.tosatti

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

Hello,

the Linux-on-a-CD system Knoppix has nearly all framebuffer drivers for 
2.4.23 compiled in. Additionally, it surpreesses 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.

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

Please apply, thanks!

I'll create a separate patch 2.6 later, apparently clgenfb.c has gone there.

CU
Michael.

[-- Attachment #2: video-fb-shutup.diff --]
[-- Type: text/plain, Size: 967 bytes --]

diff -ur xx-linux-2.4.22/drivers/video/clgenfb.c xx-linux-2.4.22.p/drivers/video/clgenfb.c
--- xx-linux-2.4.22/drivers/video/clgenfb.c	2003-06-13 16:51:37.000000000 +0200
+++ xx-linux-2.4.22.p/drivers/video/clgenfb.c	2003-12-12 13:48:34.000000000 +0100
@@ -2547,7 +2547,7 @@
 
 	pdev = clgen_pci_dev_get (btype);
 	if (!pdev) {
-		printk (KERN_ERR " Couldn't find PCI device\n");
+		printk (KERN_INFO "clgen: couldn't find Cirrus Logic PCI device\n");
 		DPRINTK ("EXIT, returning 1\n");
 		return 1;
 	}
diff -ur xx-linux-2.4.22/drivers/video/hgafb.c xx-linux-2.4.22.p/drivers/video/hgafb.c
--- xx-linux-2.4.22/drivers/video/hgafb.c	2001-11-12 18:46:25.000000000 +0100
+++ xx-linux-2.4.22.p/drivers/video/hgafb.c	2003-12-12 13:47:01.000000000 +0100
@@ -704,7 +704,7 @@
 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;
 	}
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][2.4] change two annoying messages from framebuffer drivers
  2003-12-12 12:57 [PATCH][2.4] change two annoying messages from framebuffer drivers Michael Hunold
@ 2003-12-15 10:10 ` Geert Uytterhoeven
  2003-12-18 19:05   ` Marcelo Tosatti
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2003-12-15 10:10 UTC (permalink / raw)
  To: Michael Hunold; +Cc: Linux Kernel Mailing List, Marcelo Tosatti

On Fri, 12 Dec 2003, Michael Hunold wrote:
> 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.
>
> The appended patch replaces two KERN_ERR with KERN_INFO and additionally
> makes the clgen.c message more descriptive.
>
> Please apply, thanks!

Patch looks OK to me, except that I would print `clgenfb' instead of `clgen'.

> I'll create a separate patch 2.6 later, apparently clgenfb.c has gone there.

It was renamed to cirrusfb.c.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][2.4] change two annoying messages from framebuffer drivers
  2003-12-15 10:10 ` Geert Uytterhoeven
@ 2003-12-18 19:05   ` Marcelo Tosatti
  2003-12-22 20:39     ` Michael Hunold
  0 siblings, 1 reply; 4+ messages in thread
From: Marcelo Tosatti @ 2003-12-18 19:05 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux Kernel Mailing List, Michael Hunold



On Mon, 15 Dec 2003, Geert Uytterhoeven wrote:

> On Fri, 12 Dec 2003, Michael Hunold wrote:
> > 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.
> >
> > The appended patch replaces two KERN_ERR with KERN_INFO and additionally
> > makes the clgen.c message more descriptive.
> >
> > Please apply, thanks!
>
> Patch looks OK to me, except that I would print `clgenfb' instead of `clgen'.

That looks sane.

Can you change it Michael?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][2.4] change two annoying messages from framebuffer drivers
  2003-12-18 19:05   ` Marcelo Tosatti
@ 2003-12-22 20:39     ` Michael Hunold
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Hunold @ 2003-12-22 20:39 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Geert Uytterhoeven, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

Hello Marcelo,

On 18.12.2003 20:05, Marcelo Tosatti schrieb:
> 
> On Mon, 15 Dec 2003, Geert Uytterhoeven wrote:
> 
> 
>>On Fri, 12 Dec 2003, Michael Hunold wrote:
>>
>>>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.
>>>
>>>The appended patch replaces two KERN_ERR with KERN_INFO and additionally
>>>makes the clgen.c message more descriptive.
>>>
>>>Please apply, thanks!
>>
>>Patch looks OK to me, except that I would print `clgenfb' instead of `clgen'.
> 
> 
> That looks sane.
> 
> Can you change it Michael?

Attached is an updated patch -- sorry for the long delay.

I'll create a separate patch for 2.6 and sent it to Linus/Andrew.

CU
Michael.

[-- Attachment #2: video-fb-shutup.diff --]
[-- Type: text/plain, Size: 969 bytes --]

diff -ur xx-linux-2.4.22/drivers/video/clgenfb.c xx-linux-2.4.22.p/drivers/video/clgenfb.c
--- xx-linux-2.4.22/drivers/video/clgenfb.c	2003-06-13 16:51:37.000000000 +0200
+++ xx-linux-2.4.22.p/drivers/video/clgenfb.c	2003-12-12 13:48:34.000000000 +0100
@@ -2547,7 +2547,7 @@
 
 	pdev = clgen_pci_dev_get (btype);
 	if (!pdev) {
-		printk (KERN_ERR " Couldn't find PCI device\n");
+		printk (KERN_INFO "clgenfb: couldn't find Cirrus Logic PCI device\n");
 		DPRINTK ("EXIT, returning 1\n");
 		return 1;
 	}
diff -ur xx-linux-2.4.22/drivers/video/hgafb.c xx-linux-2.4.22.p/drivers/video/hgafb.c
--- xx-linux-2.4.22/drivers/video/hgafb.c	2001-11-12 18:46:25.000000000 +0100
+++ xx-linux-2.4.22.p/drivers/video/hgafb.c	2003-12-12 13:47:01.000000000 +0100
@@ -704,7 +704,7 @@
 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;
 	}
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-22 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 12:57 [PATCH][2.4] change two annoying messages from framebuffer drivers Michael Hunold
2003-12-15 10:10 ` Geert Uytterhoeven
2003-12-18 19:05   ` Marcelo Tosatti
2003-12-22 20:39     ` Michael Hunold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).