Coverity #983: Move some risky debugging code inside #ifdef DEBUG.
This commit is contained in:
parent
c03cfca380
commit
a01f17d6de
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||||
|
|
||||||
|
* hw/xfree86/dri/dri.c:
|
||||||
|
Coverity #983: Move some risky debugging code inside #ifdef
|
||||||
|
DEBUG.
|
||||||
|
|
||||||
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
2006-04-02 Adam Jackson <ajax@freedesktop.org>
|
||||||
|
|
||||||
* GL/glx/glxcmds.c:
|
* GL/glx/glxcmds.c:
|
||||||
|
|
|
@ -1427,7 +1427,6 @@ DRISwapContext(int drmFD, void *oldctx, void *newctx)
|
||||||
DRISyncType syncType;
|
DRISyncType syncType;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!newContext) {
|
if (!newContext) {
|
||||||
DRIDrvMsg(pScreen->myNum, X_ERROR,
|
DRIDrvMsg(pScreen->myNum, X_ERROR,
|
||||||
|
@ -1436,7 +1435,6 @@ DRISwapContext(int drmFD, void *oldctx, void *newctx)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
/* usefull for debugging, just print out after n context switches */
|
/* usefull for debugging, just print out after n context switches */
|
||||||
if (!count || !(count % 1)) {
|
if (!count || !(count % 1)) {
|
||||||
DRIDrvMsg(pScreen->myNum, X_INFO,
|
DRIDrvMsg(pScreen->myNum, X_INFO,
|
||||||
|
|
Loading…
Reference in New Issue