* [PATCH] Disable the most annoying printk in the kernel
@ 2005-10-27 8:26 Andi Kleen
2005-10-27 14:04 ` Keenan Pepper
` (2 more replies)
0 siblings, 3 replies; 23+ messages in thread
From: Andi Kleen @ 2005-10-27 8:26 UTC (permalink / raw)
To: vojtech; +Cc: akpm, linux-kernel
Remove most useless printk in the world
Signed-off-by: Andi Kleen <ak@suse.de>
Index: linux/drivers/input/keyboard/atkbd.c
===================================================================
--- linux/drivers/input/keyboard/atkbd.c
+++ linux/drivers/input/keyboard/atkbd.c
@@ -328,7 +328,6 @@ static irqreturn_t atkbd_interrupt(struc
atkbd_report_key(&atkbd->dev, regs, KEY_HANJA, 3);
goto out;
case ATKBD_RET_ERR:
- printk(KERN_DEBUG "atkbd.c: Keyboard on %s reports too many keys pressed.
\n", serio->phys);
goto out;
}
^ permalink raw reply [flat|nested] 23+ messages in thread* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-27 8:26 [PATCH] Disable the most annoying printk in the kernel Andi Kleen @ 2005-10-27 14:04 ` Keenan Pepper 2005-10-27 14:39 ` Steven Rostedt 2005-10-27 18:03 ` Ingo Oeser 2005-10-28 7:20 ` Pavel Machek 2 siblings, 1 reply; 23+ messages in thread From: Keenan Pepper @ 2005-10-27 14:04 UTC (permalink / raw) To: Andi Kleen; +Cc: vojtech, akpm, linux-kernel Andi Kleen wrote: > Remove most useless printk in the world No way! I love that prink! =P > Signed-off-by: Andi Kleen <ak@suse.de> > > Index: linux/drivers/input/keyboard/atkbd.c > =================================================================== > --- linux/drivers/input/keyboard/atkbd.c > +++ linux/drivers/input/keyboard/atkbd.c > @@ -328,7 +328,6 @@ static irqreturn_t atkbd_interrupt(struc > atkbd_report_key(&atkbd->dev, regs, KEY_HANJA, 3); > goto out; > case ATKBD_RET_ERR: > - printk(KERN_DEBUG "atkbd.c: Keyboard on %s reports too many keys pressed. > \n", serio->phys); > goto out; > } > ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-27 14:04 ` Keenan Pepper @ 2005-10-27 14:39 ` Steven Rostedt 2005-10-27 22:00 ` Jan Engelhardt 0 siblings, 1 reply; 23+ messages in thread From: Steven Rostedt @ 2005-10-27 14:39 UTC (permalink / raw) To: Keenan Pepper; +Cc: linux-kernel, akpm, vojtech, Andi Kleen On Thu, 2005-10-27 at 10:04 -0400, Keenan Pepper wrote: > Andi Kleen wrote: > > Remove most useless printk in the world > > No way! I love that prink! =P > And you know, once it is gone, you will start getting reports from people that their kernel doesn't act like it use to. Or they'll start to think that their keyboards suddenly work better ;-) -- Steve > > Signed-off-by: Andi Kleen <ak@suse.de> > > > > Index: linux/drivers/input/keyboard/atkbd.c > > =================================================================== > > --- linux/drivers/input/keyboard/atkbd.c > > +++ linux/drivers/input/keyboard/atkbd.c > > @@ -328,7 +328,6 @@ static irqreturn_t atkbd_interrupt(struc > > atkbd_report_key(&atkbd->dev, regs, KEY_HANJA, 3); > > goto out; > > case ATKBD_RET_ERR: > > - printk(KERN_DEBUG "atkbd.c: Keyboard on %s reports too many keys pressed. > > \n", serio->phys); > > goto out; > > } > > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-27 14:39 ` Steven Rostedt @ 2005-10-27 22:00 ` Jan Engelhardt 0 siblings, 0 replies; 23+ messages in thread From: Jan Engelhardt @ 2005-10-27 22:00 UTC (permalink / raw) To: Steven Rostedt; +Cc: Keenan Pepper, linux-kernel, akpm, vojtech, Andi Kleen >> > Remove most useless printk in the world >> >> No way! I love that prink! =P > >And you know, once it is gone, you will start getting reports from >people that their kernel doesn't act like it use to. Or they'll start >to think that their keyboards suddenly work better ;-) You could make it a high beep click `a la MS-DOS. Jan Engelhardt -- ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-27 8:26 [PATCH] Disable the most annoying printk in the kernel Andi Kleen 2005-10-27 14:04 ` Keenan Pepper @ 2005-10-27 18:03 ` Ingo Oeser 2005-10-27 23:23 ` jerome lacoste 2005-10-28 7:20 ` Pavel Machek 2 siblings, 1 reply; 23+ messages in thread From: Ingo Oeser @ 2005-10-27 18:03 UTC (permalink / raw) To: linux-kernel; +Cc: Andi Kleen, vojtech, akpm [-- Attachment #1: Type: text/plain, Size: 431 bytes --] Hi Andi, On Thursday 27 October 2005 10:26, Andi Kleen wrote: > Remove most useless printk in the world *clap* *clap* Thanks! It usally triggers, if your cat, child, bird whatever handles your keyboard or you accidentally put a book or sth. on it (e.g while the screen has been locked). So there is really no use for it, except for kernel debugging, where it can be wrapped up by pr_debug() or similiar. Regards Ingo Oeser [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-27 18:03 ` Ingo Oeser @ 2005-10-27 23:23 ` jerome lacoste 0 siblings, 0 replies; 23+ messages in thread From: jerome lacoste @ 2005-10-27 23:23 UTC (permalink / raw) To: Ingo Oeser; +Cc: linux-kernel, Andi Kleen, vojtech, akpm On 10/27/05, Ingo Oeser <ioe-lkml@rameria.de> wrote: > Hi Andi, > > On Thursday 27 October 2005 10:26, Andi Kleen wrote: > > Remove most useless printk in the world > > *clap* *clap* > > Thanks! > > It usally triggers, if your cat, child, bird whatever handles your keyboard or > you accidentally put a book or sth. on it (e.g while the screen has been > locked). > > So there is really no use for it, except for kernel debugging, > where it can be wrapped up by pr_debug() or similiar. I am not the fastest typer on Earth, far from it. I use to have this printed all over the place on my Dell Inspiron 8100 laptop, without really doing anything special with my keyboard.... So I don't know if this was an issue or not, but given that my keyboard never caused me a trouble, I just brain blacklisted the message. Thanks a lot for making this simple yet effective patch :) Cheers, Jerome ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-27 8:26 [PATCH] Disable the most annoying printk in the kernel Andi Kleen 2005-10-27 14:04 ` Keenan Pepper 2005-10-27 18:03 ` Ingo Oeser @ 2005-10-28 7:20 ` Pavel Machek 2005-10-28 18:43 ` Andi Kleen 2005-10-28 18:50 ` Hugh Dickins 2 siblings, 2 replies; 23+ messages in thread From: Pavel Machek @ 2005-10-28 7:20 UTC (permalink / raw) To: Andi Kleen; +Cc: vojtech, akpm, linux-kernel Hi! > Remove most useless printk in the world > > Signed-off-by: Andi Kleen <ak@suse.de> It warns about crappy keyboards. It triggers regulary for me on x32, (probably because of my weird capslock+x+s etc combination). It is usefull as a warning "this keyboard is crap" and "no, bad mechanical switch is not the reason for lost key". Pavel -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 7:20 ` Pavel Machek @ 2005-10-28 18:43 ` Andi Kleen 2005-10-28 18:52 ` Andre Eisenbach 2005-10-28 18:50 ` Hugh Dickins 1 sibling, 1 reply; 23+ messages in thread From: Andi Kleen @ 2005-10-28 18:43 UTC (permalink / raw) To: Pavel Machek; +Cc: vojtech, akpm, linux-kernel On Friday 28 October 2005 09:20, Pavel Machek wrote: > Hi! > > > Remove most useless printk in the world > > > > Signed-off-by: Andi Kleen <ak@suse.de> > > It warns about crappy keyboards. It triggers regulary for me on x32, > (probably because of my weird capslock+x+s etc combination). It is > usefull as a warning "this keyboard is crap" and "no, bad mechanical switch > is not the reason for lost key". In German that would be described as "Zum Schaden auch noch den Spot" (for the damage you get the gossip too). Not very useful. -Andi ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 18:43 ` Andi Kleen @ 2005-10-28 18:52 ` Andre Eisenbach 0 siblings, 0 replies; 23+ messages in thread From: Andre Eisenbach @ 2005-10-28 18:52 UTC (permalink / raw) To: Andi Kleen; +Cc: linux-kernel "Add insult to injury" ;) 2005/10/28, Andi Kleen <ak@suse.de>: > On Friday 28 October 2005 09:20, Pavel Machek wrote: > > Hi! > > > > > Remove most useless printk in the world > > > > > > Signed-off-by: Andi Kleen <ak@suse.de> > > > > It warns about crappy keyboards. It triggers regulary for me on x32, > > (probably because of my weird capslock+x+s etc combination). It is > > usefull as a warning "this keyboard is crap" and "no, bad mechanical switch > > is not the reason for lost key". > > In German that would be described as "Zum Schaden auch noch den Spot" > (for the damage you get the gossip too). Not very useful. > > -Andi > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 7:20 ` Pavel Machek 2005-10-28 18:43 ` Andi Kleen @ 2005-10-28 18:50 ` Hugh Dickins 2005-10-28 20:43 ` Lee Revell 1 sibling, 1 reply; 23+ messages in thread From: Hugh Dickins @ 2005-10-28 18:50 UTC (permalink / raw) To: Pavel Machek; +Cc: Andi Kleen, vojtech, akpm, linux-kernel On Fri, 28 Oct 2005, Pavel Machek wrote: > > > Remove most useless printk in the world > > It warns about crappy keyboards. It triggers regulary for me on x32, > (probably because of my weird capslock+x+s etc combination). It is > usefull as a warning "this keyboard is crap" and "no, bad mechanical switch > is not the reason for lost key". Okay, if you want a message to remind you that your keyboard is crap several times a day, please keep your own patch to do so. Let the rest of the world go with Andi's patch. Hugh ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 18:50 ` Hugh Dickins @ 2005-10-28 20:43 ` Lee Revell 2005-10-28 20:51 ` Pavel Machek 2005-10-29 15:36 ` Ingo Oeser 0 siblings, 2 replies; 23+ messages in thread From: Lee Revell @ 2005-10-28 20:43 UTC (permalink / raw) To: Hugh Dickins; +Cc: Pavel Machek, Andi Kleen, vojtech, akpm, linux-kernel On Fri, 2005-10-28 at 19:50 +0100, Hugh Dickins wrote: > On Fri, 28 Oct 2005, Pavel Machek wrote: > > > > > Remove most useless printk in the world > > > > It warns about crappy keyboards. It triggers regulary for me on x32, > > (probably because of my weird capslock+x+s etc combination). It is > > usefull as a warning "this keyboard is crap" and "no, bad mechanical switch > > is not the reason for lost key". > > Okay, if you want a message to remind you that your keyboard is crap > several times a day, please keep your own patch to do so. Let the > rest of the world go with Andi's patch. Plus keyboards are a dime a dozen these days, they give you one with every server whether or not you want it. If you have rack full of 1U servers the pile of keyboards will be as high as the rack. I wish our KVM vendor would come haul them away. Lee ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:43 ` Lee Revell @ 2005-10-28 20:51 ` Pavel Machek 2005-10-28 20:59 ` Russell King 2005-10-29 15:36 ` Ingo Oeser 1 sibling, 1 reply; 23+ messages in thread From: Pavel Machek @ 2005-10-28 20:51 UTC (permalink / raw) To: Lee Revell; +Cc: Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel Hi! > > > > Remove most useless printk in the world > > > > > > It warns about crappy keyboards. It triggers regulary for me on x32, > > > (probably because of my weird capslock+x+s etc combination). It is > > > usefull as a warning "this keyboard is crap" and "no, bad mechanical switch > > > is not the reason for lost key". > > > > Okay, if you want a message to remind you that your keyboard is crap > > several times a day, please keep your own patch to do so. Let the > > rest of the world go with Andi's patch. > > Plus keyboards are a dime a dozen these days, they give you one with > every server whether or not you want it. If you have rack full of 1U > servers the pile of keyboards will be as high as the rack. I wish our > KVM vendor would come haul them away. Well, keyboard detected and reported an error. Kernel reacted with printk(). You are removing that printk(). I can understand that, printk is really annoying, but I really believe _some_ error handling should be added there if you remove the printk. Pavel -- Thanks, Sharp! ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:51 ` Pavel Machek @ 2005-10-28 20:59 ` Russell King 2005-10-28 21:20 ` Jan Engelhardt ` (3 more replies) 0 siblings, 4 replies; 23+ messages in thread From: Russell King @ 2005-10-28 20:59 UTC (permalink / raw) To: Pavel Machek Cc: Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel On Fri, Oct 28, 2005 at 10:51:32PM +0200, Pavel Machek wrote: > Well, keyboard detected and reported an error. Kernel reacted with > printk(). You are removing that printk(). I can understand that, > printk is really annoying, but I really believe _some_ error handling > should be added there if you remove the printk. What do you suggest? Having a TP 380XD which regularly produces this annoying message, it's just logspam. There's no noticable failure. Plus, kernels previous to ones with the new input subsystem just used to ignore the scancode (from v2.[24].xx): int pckbd_translate(unsigned char scancode, unsigned char *keycode, char raw_mode) { ... /* 0xFF is sent by a few keyboards, ignore it. 0x00 is error */ if (scancode == 0x00 || scancode == 0xff) { prev_scancode = 0; return 0; } } -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:59 ` Russell King @ 2005-10-28 21:20 ` Jan Engelhardt 2005-10-28 21:22 ` Andi Kleen ` (2 subsequent siblings) 3 siblings, 0 replies; 23+ messages in thread From: Jan Engelhardt @ 2005-10-28 21:20 UTC (permalink / raw) To: Russell King Cc: Pavel Machek, Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel >> Well, keyboard detected and reported an error. Kernel reacted with >> printk(). You are removing that printk(). I can understand that, >> printk is really annoying, but I really believe _some_ error handling >> should be added there if you remove the printk. > >What do you suggest? I would say print it once a day, or even less, e.g. once per boot. >Having a TP 380XD which regularly produces this annoying message, >it's just logspam. There's no noticable failure. Jan Engelhardt -- ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:59 ` Russell King 2005-10-28 21:20 ` Jan Engelhardt @ 2005-10-28 21:22 ` Andi Kleen 2005-10-28 21:40 ` Russell King 2005-10-28 22:41 ` Jon Masters 2005-10-28 21:23 ` Pavel Machek 2005-10-29 7:45 ` Pavel Machek 3 siblings, 2 replies; 23+ messages in thread From: Andi Kleen @ 2005-10-28 21:22 UTC (permalink / raw) To: Russell King Cc: Pavel Machek, Lee Revell, Hugh Dickins, vojtech, akpm, linux-kernel On Friday 28 October 2005 22:59, Russell King wrote: > On Fri, Oct 28, 2005 at 10:51:32PM +0200, Pavel Machek wrote: > > Well, keyboard detected and reported an error. Kernel reacted with > > printk(). You are removing that printk(). I can understand that, > > printk is really annoying, but I really believe _some_ error handling > > should be added there if you remove the printk. > > What do you suggest? Obviously it needs an DBUS over netlink interface with an user space daemon to open a window on the desktop. Then the user needs to click ok to make sure they understood they did something wrong (either by buying broken hardware or by simply typing). You get bonus points when that window first opens another window with a "Did you know ..." message with a little dancing pink penguin that gives you helpful tips regarding typing on keyboards and offers you links to buy new keyboards on the web. Wouldn't that be great? -Andi ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 21:22 ` Andi Kleen @ 2005-10-28 21:40 ` Russell King 2005-10-28 22:41 ` Jon Masters 1 sibling, 0 replies; 23+ messages in thread From: Russell King @ 2005-10-28 21:40 UTC (permalink / raw) To: Andi Kleen Cc: Pavel Machek, Lee Revell, Hugh Dickins, vojtech, akpm, linux-kernel On Fri, Oct 28, 2005 at 11:22:15PM +0200, Andi Kleen wrote: > On Friday 28 October 2005 22:59, Russell King wrote: > > On Fri, Oct 28, 2005 at 10:51:32PM +0200, Pavel Machek wrote: > > > Well, keyboard detected and reported an error. Kernel reacted with > > > printk(). You are removing that printk(). I can understand that, > > > printk is really annoying, but I really believe _some_ error handling > > > should be added there if you remove the printk. > > > > What do you suggest? > > Obviously it needs an DBUS over netlink interface with an user space daemon to open > a window on the desktop. Then the user needs to click ok to make sure they > understood they did something wrong (either by buying broken hardware or by simply > typing). > > You get bonus points when that window first opens another window with a "Did you > know ..." message with a little dancing pink penguin that gives you helpful tips > regarding typing on keyboards and offers you links to buy new keyboards on the web. > > Wouldn't that be great? Sounds like too much hastle. I heard an alternative suggestion somewhere which I liked much better <evil grin>. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 21:22 ` Andi Kleen 2005-10-28 21:40 ` Russell King @ 2005-10-28 22:41 ` Jon Masters 1 sibling, 0 replies; 23+ messages in thread From: Jon Masters @ 2005-10-28 22:41 UTC (permalink / raw) To: Andi Kleen; +Cc: linux-kernel On 10/28/05, Andi Kleen <ak@suse.de> wrote: > On Friday 28 October 2005 22:59, Russell King wrote: > > On Fri, Oct 28, 2005 at 10:51:32PM +0200, Pavel Machek wrote: > > > Well, keyboard detected and reported an error. Kernel reacted with > > > printk(). You are removing that printk(). I can understand that, > > > printk is really annoying, but I really believe _some_ error handling > > > should be added there if you remove the printk. > > > > What do you suggest? > > Obviously it needs an DBUS over netlink interface with an user space daemon to open > a window on the desktop. Then the user needs to click ok to make sure they > understood they did something wrong (either by buying broken hardware or by simply > typing). But just in case the mouse is also broken, this should broadcast out on the local network and popup windows on every other Linux box we can find within 50 miles. > You get bonus points when that window first opens another window with a "Did you > know ..." message with a little dancing pink penguin that gives you helpful tips > regarding typing on keyboards and offers you links to buy new keyboards on the web. > Wouldn't that be great? Where does sysfs fit into this plan? :P Jon. ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:59 ` Russell King 2005-10-28 21:20 ` Jan Engelhardt 2005-10-28 21:22 ` Andi Kleen @ 2005-10-28 21:23 ` Pavel Machek 2005-10-28 21:36 ` Russell King 2005-10-29 15:40 ` Ingo Oeser 2005-10-29 7:45 ` Pavel Machek 3 siblings, 2 replies; 23+ messages in thread From: Pavel Machek @ 2005-10-28 21:23 UTC (permalink / raw) To: Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel Hi! > > Well, keyboard detected and reported an error. Kernel reacted with > > printk(). You are removing that printk(). I can understand that, > > printk is really annoying, but I really believe _some_ error handling > > should be added there if you remove the printk. > > What do you suggest? Well, having error counter for each input device would probably be enough. Or perhaps add some rate-limiting. One message per boot should be adequate. > Having a TP 380XD which regularly produces this annoying message, > it's just logspam. There's no noticable failure. I do notice lost keys on x32 here. You need to press some weird combination... Pavel -- Thanks, Sharp! ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 21:23 ` Pavel Machek @ 2005-10-28 21:36 ` Russell King 2005-10-29 15:40 ` Ingo Oeser 1 sibling, 0 replies; 23+ messages in thread From: Russell King @ 2005-10-28 21:36 UTC (permalink / raw) To: Pavel Machek Cc: Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel On Fri, Oct 28, 2005 at 11:23:05PM +0200, Pavel Machek wrote: > > Having a TP 380XD which regularly produces this annoying message, > > it's just logspam. There's no noticable failure. > > I do notice lost keys on x32 here. You need to press some weird > combination... I don't need any weird combinations to produce this message - it appears quite often when hitting keys to wake it up from sleep mode (which it has an eager desire to be in when it's used in text-only mode.) > > What do you suggest? > > Well, having error counter for each input device would probably be > enough. Or perhaps add some rate-limiting. One message per boot should > be adequate. $ dmesg |grep 'too many' | wc -l 72 I don't care how many occur or even that they do occur. That's not to say someone else doesn't. But if there is someone else who does care, maybe they should speak up and produce a patch to add whatever /they/ /do/ require. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 21:23 ` Pavel Machek 2005-10-28 21:36 ` Russell King @ 2005-10-29 15:40 ` Ingo Oeser 1 sibling, 0 replies; 23+ messages in thread From: Ingo Oeser @ 2005-10-29 15:40 UTC (permalink / raw) To: linux-kernel Cc: Pavel Machek, Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm [-- Attachment #1: Type: text/plain, Size: 223 bytes --] On Friday 28 October 2005 23:23, Pavel Machek wrote: > I do notice lost keys on x32 here. You need to press some weird > combination... So just tell the message, if !strcmp(current->comm,'emacs') :-) Regards Ingo Oeser [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:59 ` Russell King ` (2 preceding siblings ...) 2005-10-28 21:23 ` Pavel Machek @ 2005-10-29 7:45 ` Pavel Machek 3 siblings, 0 replies; 23+ messages in thread From: Pavel Machek @ 2005-10-29 7:45 UTC (permalink / raw) To: Pavel Machek, Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel Hi! > > Well, keyboard detected and reported an error. Kernel reacted with > > printk(). You are removing that printk(). I can understand that, > > printk is really annoying, but I really believe _some_ error handling > > should be added there if you remove the printk. > > What do you suggest? Second possibility would be to create "error" event, and send it to userspace. Userspace would probably ignore it, but that's okay. At least it has chance to do the right thing. (AKA dbus event, and nice, friendly "do not panic" message ;-) -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH] Disable the most annoying printk in the kernel 2005-10-28 20:43 ` Lee Revell 2005-10-28 20:51 ` Pavel Machek @ 2005-10-29 15:36 ` Ingo Oeser 1 sibling, 0 replies; 23+ messages in thread From: Ingo Oeser @ 2005-10-29 15:36 UTC (permalink / raw) To: linux-kernel Cc: Lee Revell, Hugh Dickins, Pavel Machek, Andi Kleen, vojtech, akpm [-- Attachment #1: Type: text/plain, Size: 982 bytes --] On Friday 28 October 2005 22:43, Lee Revell wrote: > Plus keyboards are a dime a dozen these days, they give you one with > every server whether or not you want it. If you have rack full of 1U > servers the pile of keyboards will be as high as the rack. I wish our > KVM vendor would come haul them away. My employer sells servers and neither includes keyboards nor monitors nor mouses. These are extras, since my employer considers servers "unattended machines" and you either have a KVM switch or can rip a KVM-set off some work station, if you have a hardware failure. If you don't have a KVM set at hand, our service team brings it in. So you just need to change to a sane vendor and can exclude that kind of costs[1] in the next contract. Regards Ingo Oeser [1] Just consider the deposit and recycling costs, maintence costs, storage space costs, inventory costs and so on. This all adds up dime by dime for a good amount of servers. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 23+ messages in thread
[parent not found: <52bjf-680-9@gated-at.bofh.it>]
[parent not found: <52Hj9-3e6-27@gated-at.bofh.it>]
[parent not found: <52HCr-3CO-7@gated-at.bofh.it>]
[parent not found: <52JkU-6gS-29@gated-at.bofh.it>]
[parent not found: <52JuY-6s7-21@gated-at.bofh.it>]
* Re: [PATCH] Disable the most annoying printk in the kernel [not found] ` <52JuY-6s7-21@gated-at.bofh.it> @ 2005-10-28 22:18 ` Bodo Eggert 0 siblings, 0 replies; 23+ messages in thread From: Bodo Eggert @ 2005-10-28 22:18 UTC (permalink / raw) To: Pavel Machek, Lee Revell, Hugh Dickins, Andi Kleen, vojtech, akpm, linux-kernel Pavel Machek <pavel@suse.cz> wrote: > Well, keyboard detected and reported an error. Kernel reacted with > printk(). You are removing that printk(). I can understand that, > printk is really annoying, but I really believe _some_ error handling > should be added there if you remove the printk. I once posted a printk that would only actually print if the last printk wasn't the same message. This would ensure error reporting while preventing dmesg from being spammed. Off cause this would fail if two subsystems are competing to annoy you. -- Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF verbreiteten Lügen zu sabotieren. ^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2005-10-30 12:39 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-27 8:26 [PATCH] Disable the most annoying printk in the kernel Andi Kleen
2005-10-27 14:04 ` Keenan Pepper
2005-10-27 14:39 ` Steven Rostedt
2005-10-27 22:00 ` Jan Engelhardt
2005-10-27 18:03 ` Ingo Oeser
2005-10-27 23:23 ` jerome lacoste
2005-10-28 7:20 ` Pavel Machek
2005-10-28 18:43 ` Andi Kleen
2005-10-28 18:52 ` Andre Eisenbach
2005-10-28 18:50 ` Hugh Dickins
2005-10-28 20:43 ` Lee Revell
2005-10-28 20:51 ` Pavel Machek
2005-10-28 20:59 ` Russell King
2005-10-28 21:20 ` Jan Engelhardt
2005-10-28 21:22 ` Andi Kleen
2005-10-28 21:40 ` Russell King
2005-10-28 22:41 ` Jon Masters
2005-10-28 21:23 ` Pavel Machek
2005-10-28 21:36 ` Russell King
2005-10-29 15:40 ` Ingo Oeser
2005-10-29 7:45 ` Pavel Machek
2005-10-29 15:36 ` Ingo Oeser
[not found] <52bjf-680-9@gated-at.bofh.it>
[not found] ` <52Hj9-3e6-27@gated-at.bofh.it>
[not found] ` <52HCr-3CO-7@gated-at.bofh.it>
[not found] ` <52JkU-6gS-29@gated-at.bofh.it>
[not found] ` <52JuY-6s7-21@gated-at.bofh.it>
2005-10-28 22:18 ` Bodo Eggert
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox