diff options
author | Daniel Stone <daniel.stone@nokia.com> | 2006-07-20 16:49:17 -0400 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-07-21 15:19:54 -0400 |
commit | f18c3122a57df9770087e5fc70ac488552222233 (patch) | |
tree | e94fc063636d9cc4144c1b0a9b0d7574d01e03b9 /mi/mieq.c | |
parent | 463e0fe35bec3c91b19be9aacf34babb146a88c9 (diff) |
sanitise debug output
Don't spit out huge chunks of pointless ephemera, especially without
--enable-debug.
Diffstat (limited to 'mi/mieq.c')
-rw-r--r-- | mi/mieq.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -101,7 +101,10 @@ mieqEnqueue (xEvent *e) deviceKeyButtonPointer *lastkbp = (deviceKeyButtonPointer *) &laste->event[0]; +#ifdef DEBUG ErrorF("mieqEnqueue: slamming an event on to the queue from %d\n", kbp->deviceid & DEVICE_BITS); +#endif + if (e->u.u.type == MotionNotify) { miPointerAbsoluteCursor(e->u.keyButtonPointer.rootX, e->u.keyButtonPointer.rootY, @@ -135,7 +138,6 @@ mieqEnqueue (xEvent *e) return; } laste->event[laste->nevents++] = *e; - ErrorF("put a valuator event into the queue\n"); return; } else if (e->u.u.type == DeviceMotionNotify) { @@ -174,9 +176,11 @@ mieqEnqueue (xEvent *e) if (e->u.keyButtonPointer.time < miEventQueue.lastEventTime && miEventQueue.lastEventTime - e->u.keyButtonPointer.time < 10000) { +#ifdef DEBUG ErrorF("mieq: rewinding event time from %d to %d\n", miEventQueue.lastEventTime, miEventQueue.events[oldtail].event[0].u.keyButtonPointer.time); +#endif miEventQueue.events[oldtail].event[0].u.keyButtonPointer.time = miEventQueue.lastEventTime; } @@ -186,7 +190,6 @@ mieqEnqueue (xEvent *e) miEventQueue.events[oldtail].pDev = pDev; miEventQueue.lastMotion = isMotion; - ErrorF("bottom of mieqEnqueue\n"); } void @@ -206,8 +209,6 @@ void mieqProcessInputEvents () EventRec *e; int x, y; - ErrorF("mieqPIE: head %p, tail %p\n", miEventQueue.head, miEventQueue.tail); - while (miEventQueue.head != miEventQueue.tail) { if (screenIsSaved == SCREEN_SAVER_ON) @@ -234,7 +235,6 @@ void mieqProcessInputEvents () miEventQueue.head = 0; else ++miEventQueue.head; - ErrorF("calling pIP from mieqPIE\n"); (*e->pDev->public.processInputProc)(e->event, e->pDev, e->nevents); } } |