From 9b76a290a94f2603f3cb9498ae976125347cf54b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Aug 2009 10:27:38 -0400 Subject: [PATCH] [HB] Improve debug output --- src/hb-open-type-private.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 17fec5a6..8c01c682 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -203,15 +203,16 @@ struct Null \ * Sanitize */ -#if HB_DEBUG >= 5 +#if HB_DEBUG #define SANITIZE_DEBUG_ARG_DEF , unsigned int sanitize_depth #define SANITIZE_DEBUG_ARG , sanitize_depth + 1 -#define SANITIZE_DEBUG_ARG_INIT , 0 +#define SANITIZE_DEBUG_ARG_INIT , 1 #define SANITIZE_DEBUG() \ HB_STMT_START { \ + if (sanitize_depth < HB_DEBUG) \ fprintf (stderr, "SANITIZE(%p) %-*d-> %s\n", \ (CONST_CHARP (this) == NullPool) ? 0 : this, \ - sanitize_depth+1, sanitize_depth, \ + sanitize_depth, sanitize_depth, \ __PRETTY_FUNCTION__); \ } HB_STMT_END #else -- GitLab