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>
This commit is contained in:
parent
da4249c99f
commit
9f7a60d6e4
|
@ -409,9 +409,10 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data,
|
||||||
goto out;
|
goto out;
|
||||||
case ATKBD_RET_ACK:
|
case ATKBD_RET_ACK:
|
||||||
case ATKBD_RET_NAK:
|
case ATKBD_RET_NAK:
|
||||||
printk(KERN_WARNING "atkbd.c: Spurious %s on %s. "
|
if (printk_ratelimit())
|
||||||
"Some program might be trying access hardware directly.\n",
|
printk(KERN_WARNING "atkbd.c: Spurious %s on %s. "
|
||||||
data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys);
|
"Some program might be trying access hardware directly.\n",
|
||||||
|
data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys);
|
||||||
goto out;
|
goto out;
|
||||||
case ATKBD_RET_HANGEUL:
|
case ATKBD_RET_HANGEUL:
|
||||||
case ATKBD_RET_HANJA:
|
case ATKBD_RET_HANJA:
|
||||||
|
|
Loading…
Reference in a new issue