Commit 2e03f1cde879fb9d16d21d79f4c71fcab703a578

  • avatar
  • Peter Hutterer <peter.hutterer @wh…t.net>
  • Thu Dec 24 00:01:05 CET 2009
Remove now superfluous name prints.

The DBG macro prints the device name/device file automatically.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  
227227 int button, mask;
228228 WacomDevicePtr priv = (WacomDevicePtr) local->private;
229229 WacomCommonPtr common = priv->common;
230 DBG(6, priv, "buttons=%d for %s\n", buttons, local->name);
230 DBG(6, priv, "buttons=%d\n", buttons);
231231
232232 /* Tablet PC buttons only apply to penabled devices */
233233 if (common->wcmTPCButton && (priv->flags & STYLUS_ID))
461461 return;
462462
463463 DBG(4, priv, "TPCButton(%s) button=%d state=%d "
464 "code=%08x, for %s coreEvent=%s \n",
464 "code=%08x, coreEvent=%s \n",
465465 common->wcmTPCButton ? "on" : "off",
466466 button, mask, priv->button[button],
467 local->name, (priv->button[button] & AC_CORE) ? "yes" : "no");
467 (priv->button[button] & AC_CORE) ? "yes" : "no");
468468
469469 if (!priv->keys[button][0])
470470 {
577577 unsigned *keyP = 0;
578578 int is_absolute = priv->flags & ABSOLUTE_FLAG;
579579
580 DBG(10, priv, "strip events for %s \n", local->name);
580 DBG(10, priv, "\n");
581581
582582 /* emulate events for relative wheel */
583583 if ( ds->relwheel )
745745
746746 if (priv->serial && serial != priv->serial)
747747 {
748 DBG(10, priv, "[%s] serial number"
748 DBG(10, priv, "serial number"
749749 " is %u but your system configured %u",
750 local->name, serial, (int)priv->serial);
750 serial, (int)priv->serial);
751751 return;
752752 }
753753
820820 }
821821 v5 = wheel;
822822
823 DBG(6, priv, "[%s] %s prox=%d\tx=%d"
823 DBG(6, priv, "%s prox=%d\tx=%d"
824824 "\ty=%d\tz=%d\tv3=%d\tv4=%d\tv5=%d\tid=%d"
825825 "\tserial=%u\tbutton=%s\tbuttons=%d\n",
826 local->name,
827826 is_absolute ? "abs" : "rel",
828827 is_proximity,
829828 x, y, z, v3, v4, v5, id, serial,
18011801 priv->screenBottomY[1] = priv->tvResolution[1];
18021802 }
18031803
1804 DBG(10, priv, "\"%s\":"
1804 DBG(10, priv,
18051805 "topX0=%d topY0=%d bottomX0=%d bottomY0=%d "
18061806 "topX1=%d topY1=%d bottomX1=%d bottomY1=%d \n",
1807 local->name, priv->screenTopX[0], priv->screenTopY[0],
1807 priv->screenTopX[0], priv->screenTopY[0],
18081808 priv->screenBottomX[0], priv->screenBottomY[0],
18091809 priv->screenTopX[1], priv->screenTopY[1],
18101810 priv->screenBottomX[1], priv->screenBottomY[1]);
18191819 WacomDevicePtr priv = (WacomDevicePtr)local->private;
18201820 int i;
18211821
1822 DBG(2, priv, "\"%s\":"
1823 "number of screen=%d \n", local->name, screenInfo.numScreens);
1822 DBG(2, priv, "number of screen=%d \n", screenInfo.numScreens);
18241823 priv->tvoffsetX = 0;
18251824 priv->tvoffsetY = 0;
18261825 if (priv->twinview != TV_NONE)
18431843 priv->screenBottomX[i] = dixScreenOrigins[i].x;
18441844 priv->screenBottomY[i] = dixScreenOrigins[i].y;
18451845
1846 DBG(10, priv, "from dix for \"%s\" "
1846 DBG(10, priv, "from dix: "
18471847 "ScreenOrigins[%d].x=%d ScreenOrigins[%d].y=%d \n",
1848 local->name, i, priv->screenTopX[i], i,
1849 priv->screenTopY[i]);
1848 i, priv->screenTopX[i], i, priv->screenTopY[i]);
18501849 }
18511850
18521851 priv->screenBottomX[i] += screenInfo.screens[i]->width;
18531852 priv->screenBottomY[i] += screenInfo.screens[i]->height;
18541853
1855 DBG(10, priv, "\"%s\":"
1854 DBG(10, priv,
18561855 "topX[%d]=%d topY[%d]=%d bottomX[%d]=%d bottomY[%d]=%d \n",
1857 local->name, i, priv->screenTopX[i], i, priv->screenTopY[i],
1856 i, priv->screenTopX[i], i, priv->screenTopY[i],
18581857 i, priv->screenBottomX[i], i, priv->screenBottomY[i]);
18591858 }
18601859}
18681868 WacomToolAreaPtr area = priv->toolarea;
18691869 int tmpTopX, tmpTopY, tmpBottomX, tmpBottomY, oldMaxX, oldMaxY;
18701870
1871 DBG(10, priv, "\"%s\"", priv->local->name);
1871 DBG(10, priv, "\n");
18721872
18731873 if (!IsTouch(priv))
18741874 {
19451945 int oldRotation;
19461946 int tmpTopX, tmpTopY, tmpBottomX, tmpBottomY, oldMaxX, oldMaxY;
19471947
1948 DBG(10, priv, "\"%s\":\n", local->name);
1948 DBG(10, priv, "\n");
19491949
19501950 if (common->wcmRotate == value) /* initialization */
19511951 {
  
7171 WacomDevicePtr priv = (WacomDevicePtr)local->private;
7272 int is_absolute = priv->flags & ABSOLUTE_FLAG;
7373
74 DBG(3, priv, "%s to mode=%d\n",
75 local->name, mode);
74 DBG(3, priv, "to mode=%d\n", mode);
7675
7776 /* Pad is always in relative mode when it's a core device.
7877 * Always in absolute mode when it is not a core device.
9595 }
9696 else if ( (mode != Absolute) && (mode != Relative))
9797 {
98 DBG(10, priv,
99 "%s invalid mode=%d\n", local->name, mode);
98 DBG(10, priv, "invalid mode=%d\n", mode);
10099 return BadMatch;
101100 }
102101
209209 WacomCommonPtr common = priv->common;
210210 int values[WCM_MAX_MOUSE_BUTTONS];
211211
212 DBG(10, priv, "%s\n", local->name);
212 DBG(10, priv, "\n");
213213
214214 values[0] = priv->topX;
215215 values[1] = priv->topY;
297297 WacomDevicePtr priv = (WacomDevicePtr) local->private;
298298 WacomCommonPtr common = priv->common;
299299
300 DBG(10, priv, "%s\n", local->name);
300 DBG(10, priv, "\n");
301301
302302 if (property == prop_tablet_area)
303303 {
  
296296 priv->topPadding = (int)((double)(priv->screenTopY[i] * priv->topPadding)
297297 / ((double)(priv->screenBottomY[i] - priv->screenTopY[i])) + 0.5);
298298 }
299 DBG(10, priv, "\"%s\" "
300 "x=%d y=%d \n", local->name, priv->leftPadding, priv->topPadding);
299 DBG(10, priv, "x=%d y=%d \n", priv->leftPadding, priv->topPadding);
301300 return;
302301}
303302
335335 priv->sizeY += (int)((double)((priv->maxHeight - priv->screenBottomY[i])
336336 * tabletSize) / ((double)(priv->screenBottomY[i] - priv->screenTopY[i])) + 0.5);
337337 }
338 DBG(10, priv, "\"%s\" "
339 "x=%d y=%d \n", local->name, priv->sizeX, priv->sizeY);
338 DBG(10, priv, "x=%d y=%d \n", priv->sizeX, priv->sizeY);
340339 return;
341340}
342341
974974 int rc;
975975 struct serial_struct ser;
976976
977 DBG(1, priv, "opening %s\n", common->wcmDevice);
977 DBG(1, priv, "opening device file\n");
978978
979979 local->fd = xf86OpenSerial(local->options);
980980 if (local->fd < 0)
10641064 if (fstat(local->fd, &st) == -1)
10651065 {
10661066 /* can not access major/minor */
1067 DBG(1, priv, "%s: stat failed (%s). "
1068 "cannot check status.\n", local->name, strerror(errno));
1067 DBG(1, priv, "stat failed (%s). "
1068 "cannot check status.\n", strerror(errno));
10691069
10701070 /* older systems don't support the required ioctl.
10711071 * So, we have to let it pass */
10961096 WacomDevicePtr priv = (WacomDevicePtr)local->private;
10971097#endif
10981098 int n = xf86WaitForInput(local->fd, 0);
1099 DBG(10, priv, "%s with %d numbers of data\n", local->name, n);
1099 DBG(10, priv, "%d numbers of data\n", n);
11001100
11011101 if (n >= 0) return n ? 1 : 0;
11021102 xf86Msg(X_ERROR, "%s: select error: %s\n", local->name, strerror(errno));
11401140 int len, pos, cnt, remaining;
11411141 unsigned char * data;
11421142
1143 DBG(10, common, "device=%s"
1144 " fd=%d \n", common->wcmDevice, local->fd);
1143 DBG(10, common, "fd=%d\n", local->fd);
11451144
11461145 remaining = sizeof(common->buffer) - common->bufpos;
11471146
12821282 WacomDevicePtr priv = (WacomDevicePtr)local->private;
12831283
12841284 DBG(2, priv, "BEGIN dev=%p priv=%p "
1285 "type=%s(%s) flags=%d fd=%d what=%s\n",
1285 "type=%s flags=%d fd=%d what=%s\n",
12861286 (void *)pWcm, (void *)priv,
12871287 IsStylus(priv) ? "stylus" :
12881288 IsCursor(priv) ? "cursor" :
12891289 IsPad(priv) ? "pad" : "eraser",
1290 local->name, priv->flags, local ? local->fd : -1,
1290 priv->flags, local ? local->fd : -1,
12911291 (what == DEVICE_INIT) ? "INIT" :
12921292 (what == DEVICE_OFF) ? "OFF" :
12931293 (what == DEVICE_ON) ? "ON" :