summaryrefslogtreecommitdiff
path: root/src/videocore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/videocore.c')
-rw-r--r--src/videocore.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/videocore.c b/src/videocore.c
index a3db21f..379c2e8 100644
--- a/src/videocore.c
+++ b/src/videocore.c
@@ -37,14 +37,9 @@
#include <pciaccess.h>
#endif
-static Bool debug = 0;
+#include "videocore-debug.h"
-#define TRACE_ENTER(str) \
- do { if (debug) ErrorF("fbdev: " str " %d\n",pScrn->scrnIndex); } while (0)
-#define TRACE_EXIT(str) \
- do { if (debug) ErrorF("fbdev: " str " done\n"); } while (0)
-#define TRACE(str) \
- do { if (debug) ErrorF("fbdev trace: " str "\n"); } while (0)
+Bool videoCoreDebug = 0;
/* -------------------------------------------------------------------- */
/* prototypes */
@@ -481,7 +476,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
/* use shadow framebuffer by default */
fPtr->shadowFB = xf86ReturnOptValBool(fPtr->Options, OPTION_SHADOW_FB, TRUE);
- debug = xf86ReturnOptValBool(fPtr->Options, OPTION_DEBUG, FALSE);
+ videoCoreDebug = xf86ReturnOptValBool(fPtr->Options, OPTION_DEBUG, FALSE);
/* rotation */
fPtr->rotate = FBDEV_ROTATE_NONE;