sync some packages with trunk
[openwrt/svn-archive/archive.git] / Xorg / driver / xf86-input-tslib / patches / 011-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 diff --git a/src/tslib.c b/src/tslib.c
8 index e91a949..ad43abb 100644
9 --- a/src/tslib.c
10 +++ b/src/tslib.c
11 @@ -80,21 +80,27 @@ static const char *DEFAULTS[] = {
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 @@ -186,7 +192,9 @@ xf86TslibControlProc(DeviceIntPtr device, int what)
40 int i;
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 @@ -258,7 +266,9 @@ xf86TslibControlProc(DeviceIntPtr device, int what)
50 static void
51 xf86TslibUninit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
52 {
53 +#ifdef DEBUG
54 ErrorF("%s\n", __FUNCTION__);
55 +#endif
56 xf86TslibControlProc(pInfo->dev, DEVICE_OFF);
57 xfree(pInfo->private);
58 }