From: Behdad Esfahbod Date: Thu, 6 Aug 2009 14:27:38 +0000 (-0400) Subject: [HB] Improve debug output X-Git-Tag: 2.0_alpha~7^2~1052 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b76a290a94f2603f3cb9498ae976125347cf54b;p=apps%2Fcore%2Fpreloaded%2Fvideo-player.git [HB] Improve debug output --- diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 17fec5a..8c01c68 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