diff options
-rw-r--r-- | i386/i386at/kd_event.c | 9 | ||||
-rw-r--r-- | i386/i386at/kd_mouse.c | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c index b60118e..53dade7 100644 --- a/i386/i386at/kd_event.c +++ b/i386/i386at/kd_event.c @@ -293,7 +293,14 @@ void kbd_enqueue(kd_event *ev) { if (kdq_full(&kbd_queue)) - printf("kbd: queue full\n"); + { + static int warned; + if (!warned) + { + printf("kbd: queue full\n"); + warned = 1; + } + } else kdq_put(&kbd_queue, ev); diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c index 16241ef..50a3683 100644 --- a/i386/i386at/kd_mouse.c +++ b/i386/i386at/kd_mouse.c @@ -789,7 +789,14 @@ void mouse_enqueue(kd_event *ev) { if (kdq_full(&mouse_queue)) - printf("mouse: queue full\n"); + { + static int warned; + if (!warned) + { + printf("mouse: queue full\n"); + warned = 1; + } + } else kdq_put(&mouse_queue, ev); |