diff options
author | Qi Yong <qiyong@mail.fc-cn.com> | 2007-06-28 00:47:10 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-06-28 00:47:10 -0400 |
commit | 9f7a60d6e47a70957e5f6676cfe8c83956b08aa6 (patch) | |
tree | 5b3957111dba2925f63ae301683f5a90b02efee3 /drivers/input/keyboard | |
parent | da4249c99fd59c4e224e4f9acaf07669d205bb1d (diff) | |
download | linux-stable-9f7a60d6e47a70957e5f6676cfe8c83956b08aa6.tar.gz linux-stable-9f7a60d6e47a70957e5f6676cfe8c83956b08aa6.tar.bz2 linux-stable-9f7a60d6e47a70957e5f6676cfe8c83956b08aa6.zip |
Input: atkbd - use printk_ratelimit for spurious ACK messages
Signed-off-by: Qi Yong <qiyong@mail.fc-cn.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r-- | 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 9e80012d0d0c..9950fcb33650 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: |