summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 01:35:05 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 01:35:05 +0000
commita01f17d6dec02f80144e108f748783cb4e429ebb (patch)
treecb41a517cfd9c4c2c882afcef228ba4cc2e76489 /hw
parentc03cfca3806f45948627715b25b46839a07be979 (diff)
Coverity #983: Move some risky debugging code inside #ifdef DEBUG.
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/dri/dri.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c
index 8d2851033..b58b670a2 100644
--- a/hw/xfree86/dri/dri.c
+++ b/hw/xfree86/dri/dri.c
@@ -1427,7 +1427,6 @@ DRISwapContext(int drmFD, void *oldctx, void *newctx)
DRISyncType syncType;
#ifdef DEBUG
static int count = 0;
-#endif
if (!newContext) {
DRIDrvMsg(pScreen->myNum, X_ERROR,
@@ -1436,7 +1435,6 @@ DRISwapContext(int drmFD, void *oldctx, void *newctx)
return;
}
-#ifdef DEBUG
/* usefull for debugging, just print out after n context switches */
if (!count || !(count % 1)) {
DRIDrvMsg(pScreen->myNum, X_INFO,