]> err.no Git - linux-2.6/commitdiff
Input: atkbd - use printk_ratelimit for spurious ACK messages
authorQi Yong <qiyong@mail.fc-cn.com>
Thu, 28 Jun 2007 04:47:10 +0000 (00:47 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Thu, 28 Jun 2007 04:47:10 +0000 (00:47 -0400)
Signed-off-by: Qi Yong <qiyong@mail.fc-cn.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/atkbd.c

index 9e80012d0d0c8159adeb57c23040c2a442a3eb84..9950fcb33650a6ef015fe3343e527249df47f58f 100644 (file)
@@ -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: