diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-09 12:59:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-09 12:59:59 +0100 |
commit | 6f59d7d19053fed4e9d6402a5f03bc8a62cb56af (patch) | |
tree | 14141019245e394a43b4c15e93736f8ce9b36a0f | |
parent | 021209d5d3add8b28143611cfad4c5481a2945a3 (diff) |
sna: Use --enable-debug=full to enable extremely verbose debugging
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | src/sna/sna.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 17764891..31106afc 100644 --- a/configure.ac +++ b/configure.ac @@ -224,13 +224,16 @@ if test "x$SNA" != xno; then fi AC_MSG_RESULT([$sna_drivers]) -AM_CONDITIONAL(DEBUG, test x$DEBUG = xyes) +AM_CONDITIONAL(DEBUG, test x$DEBUG != xno) if test "x$DEBUG" = xno; then AC_DEFINE(NDEBUG,1,[Disable internal debugging]) fi -if test "x$DEBUG" = xyes; then +if test "x$DEBUG" != xno; then AC_DEFINE(HAS_EXTRA_DEBUG,1,[Enable additional debugging]) fi +if test "x$DEBUG" = xfull; then + AC_DEFINE(HAS_DEBUG_FULL,1,[Enable all debugging]) +fi AC_CHECK_HEADERS([sys/timerfd.h]) diff --git a/src/sna/sna.h b/src/sna/sna.h index ea2422aa..d963d9c9 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -70,7 +70,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define DBG(x) -#define DEBUG_ALL 0 +#define DEBUG_ALL (HAS_DEBUG_FULL || 0) #define DEBUG_ACCEL (DEBUG_ALL || 0) #define DEBUG_BATCH (DEBUG_ALL || 0) #define DEBUG_BLT (DEBUG_ALL || 0) |