Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9f7a60d6e47a70957e5f6676cfe8c83956b08aa6
Commit:     9f7a60d6e47a70957e5f6676cfe8c83956b08aa6
Parent:     da4249c99fd59c4e224e4f9acaf07669d205bb1d
Author:     Qi Yong <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 28 00:47:10 2007 -0400
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Thu Jun 28 00:47:10 2007 -0400

    Input: atkbd - use printk_ratelimit for spurious ACK messages
    
    Signed-off-by: Qi Yong <[EMAIL PROTECTED]>
    Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]>
---
 drivers/input/keyboard/atkbd.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 9e80012..9950fcb 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -409,9 +409,10 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, 
unsigned char data,
                        goto out;
                case ATKBD_RET_ACK:
                case ATKBD_RET_NAK:
-                       printk(KERN_WARNING "atkbd.c: Spurious %s on %s. "
-                              "Some program might be trying access hardware 
directly.\n",
-                              data == ATKBD_RET_ACK ? "ACK" : "NAK", 
serio->phys);
+                       if (printk_ratelimit())
+                               printk(KERN_WARNING "atkbd.c: Spurious %s on 
%s. "
+                                      "Some program might be trying access 
hardware directly.\n",
+                                      data == ATKBD_RET_ACK ? "ACK" : "NAK", 
serio->phys);
                        goto out;
                case ATKBD_RET_HANGEUL:
                case ATKBD_RET_HANJA:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to