From c01c1588b6a7e97fb1dc242c0a49be51725033be Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Apr 2006 01:34:56 +0000 Subject: [PATCH] Coverity #983: Move some risky debugging code inside #ifdef DEBUG. --- ChangeLog | 6 ++++++ hw/xfree86/dri/dri.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35f4115cf..35a69ace1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-02 Adam Jackson + + * hw/xfree86/dri/dri.c: + Coverity #983: Move some risky debugging code inside #ifdef + DEBUG. + 2006-04-02 Adam Jackson * GL/glx/glxcmds.c: 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,