mi: change infamous "Tossed event ..." error for something more explanatory.
Few whitespace errors fixed. Two ErrorF's prefixed with [mi].
This commit is contained in:
parent
447cd5d411
commit
117458d2db
13
mi/mieq.c
13
mi/mieq.c
|
@ -142,7 +142,7 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e)
|
||||||
lastkbp = (deviceKeyButtonPointer *) laste->events->event;
|
lastkbp = (deviceKeyButtonPointer *) laste->events->event;
|
||||||
|
|
||||||
if (laste->nevents > 6) {
|
if (laste->nevents > 6) {
|
||||||
ErrorF("mieqEnqueue: more than six valuator events; dropping.\n");
|
ErrorF("[mi] mieqEnqueue: more than six valuator events; dropping.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (oldtail == miEventQueue.head ||
|
if (oldtail == miEventQueue.head ||
|
||||||
|
@ -151,7 +151,7 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e)
|
||||||
lastkbp->type == DeviceButtonRelease) ||
|
lastkbp->type == DeviceButtonRelease) ||
|
||||||
((lastkbp->deviceid & DEVICE_BITS) !=
|
((lastkbp->deviceid & DEVICE_BITS) !=
|
||||||
(v->deviceid & DEVICE_BITS))) {
|
(v->deviceid & DEVICE_BITS))) {
|
||||||
ErrorF("mieqEnequeue: out-of-order valuator event; dropping.\n");
|
ErrorF("[mi] mieqEnequeue: out-of-order valuator event; dropping.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,12 +164,13 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e)
|
||||||
oldtail = (oldtail - 1) % QUEUE_SIZE;
|
oldtail = (oldtail - 1) % QUEUE_SIZE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
newtail = (oldtail + 1) % QUEUE_SIZE;
|
newtail = (oldtail + 1) % QUEUE_SIZE;
|
||||||
/* Toss events which come in late. Usually this means your server's
|
/* Toss events which come in late. Usually this means your server's
|
||||||
* stuck in an infinite loop somewhere, but SIGIO is still getting
|
* stuck in an infinite loop somewhere, but SIGIO is still getting
|
||||||
* handled. */
|
* handled. */
|
||||||
if (newtail == miEventQueue.head) {
|
if (newtail == miEventQueue.head) {
|
||||||
ErrorF("tossed event which came in late\n");
|
ErrorF("[mi] EQ overflowing. The server is probably stuck "
|
||||||
|
"in an infinite loop.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
miEventQueue.tail = newtail;
|
miEventQueue.tail = newtail;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user