lkml.org 
[lkml]   [1999]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Solid doc for kernel
From
Date

[Pavel Machek <pavel@suse.cz>]
> It would be nice to warn if such condition is detected. Silently
> correcting problems is bad thing (tm). So patch currently looks like
> this.

> /* glitch! bail out... */
> else {
> printk( "Keyboard glitch detected, ignoring keypress\n" );
> return;
> }

Without rate-limiting? Remember that this can happen four times per
second. That adds up to a lot of syslog. Print *one* message, maybe
two, then decrement your int variable so it will never happen again....

Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.098 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site