From 6f59d7d19053fed4e9d6402a5f03bc8a62cb56af Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 9 Jun 2011 12:59:59 +0100 Subject: sna: Use --enable-debug=full to enable extremely verbose debugging Signed-off-by: Chris Wilson --- configure.ac | 7 +++++-- 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) -- cgit v1.2.3