mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-25 01:49:58 +00:00
sanitise debug output
Don't spit out huge chunks of pointless ephemera, especially without --enable-debug.
This commit is contained in:
parent
463e0fe35b
commit
f18c3122a5
2 changed files with 7 additions and 10 deletions
|
|
@ -408,7 +408,9 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff)
|
|||
switch (onoff)
|
||||
{
|
||||
case DEVICE_INIT:
|
||||
#ifdef DEBUG
|
||||
ErrorF("initialising pointer %s ...\n", pi->name);
|
||||
#endif
|
||||
if (!pi->driver) {
|
||||
if (!pi->driverPrivate) {
|
||||
ErrorF("no driver specified for %s\n", pi->name);
|
||||
|
|
@ -468,7 +470,6 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff)
|
|||
}
|
||||
|
||||
if ((*pi->driver->Enable) (pi) == Success) {
|
||||
ErrorF("initialised fine, returning success\n");
|
||||
pDev->on = TRUE;
|
||||
return Success;
|
||||
}
|
||||
|
|
@ -495,13 +496,11 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff)
|
|||
return Success;
|
||||
|
||||
case DEVICE_CLOSE:
|
||||
ErrorF("D_C\n");
|
||||
if (pDev->on) {
|
||||
if (!pi->driver->Disable) {
|
||||
return BadImplementation;
|
||||
}
|
||||
(*pi->driver->Disable) (pi);
|
||||
ErrorF("disabled\n");
|
||||
pDev->on = FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -509,10 +508,8 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff)
|
|||
return BadImplementation;
|
||||
|
||||
(*pi->driver->Fini) (pi);
|
||||
ErrorF("finished\n");
|
||||
|
||||
KdRemovePointer(pi);
|
||||
ErrorF("removed\n");
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue