add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / Xorg / driver / xf86-input-tslib / patches / 100-ifdef-debug-output.patch
1 commit 69fcc78ea931f8a84497f4ee9021f4493f45a778
2 Author: Lars-Peter Clausen <lars@metafoo.de>
3 Date:   Sun Feb 1 16:44:24 2009 +0100
4
5     Put #ifdef DEBUG around debug output.
6
7 Index: xf86-input-tslib-0.0.6/src/tslib.c
8 ===================================================================
9 --- xf86-input-tslib-0.0.6.orig/src/tslib.c     2009-10-19 17:07:18.000000000 +0200
10 +++ xf86-input-tslib-0.0.6/src/tslib.c  2011-01-27 22:36:41.772784019 +0100
11 @@ -89,21 +89,27 @@
12  static void
13  BellProc(int percent, DeviceIntPtr pDev, pointer ctrl, int unused)
14  {
15 +#ifdef DEBUG
16         ErrorF("%s\n", __FUNCTION__);
17 +#endif
18         return;
19  }
20  
21  static void
22  KeyControlProc(DeviceIntPtr pDev, KeybdCtrl * ctrl)
23  {
24 +#ifdef DEBUG
25         ErrorF("%s\n", __FUNCTION__);
26 +#endif
27         return;
28  }
29  
30  static void
31  PointerControlProc(DeviceIntPtr dev, PtrCtrl * ctrl)
32  {
33 +#ifdef DEBUG
34         ErrorF("%s\n", __FUNCTION__);
35 +#endif
36         return;
37  }
38  
39 @@ -327,7 +333,9 @@
40         int i, axiswidth, axisheight;
41         struct ts_priv *priv;
42  
43 +#ifdef DEBUG
44         ErrorF("%s\n", __FUNCTION__);
45 +#endif
46         pInfo = device->public.devicePrivate;
47         priv = pInfo->private;
48  
49 @@ -431,7 +439,9 @@
50  xf86TslibUninit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
51  {
52         struct ts_priv *priv = (struct ts_priv *)(pInfo->private);
53 +#ifdef DEBUG
54         ErrorF("%s\n", __FUNCTION__);
55 +#endif
56         xf86TslibControlProc(pInfo->dev, DEVICE_OFF);
57         ts_close(priv->ts);
58         xfree(pInfo->private);