From 0d77ab8a73f57c9fca4c6f9301dae394d79526e3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 5 Aug 2009 15:27:42 -0400 Subject: [PATCH] [HB] Improve debug output --- src/hb-open-type-private.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 9bd16e2ca..17fec5a61 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -324,10 +324,18 @@ struct Sanitizer sane = t->sanitize (SANITIZE_ARG_INIT); if (sane) { if (context.edit_count) { +#if HB_DEBUG + fprintf (stderr, "Sanitizer %p passed first round with %d edits; going a second round %s\n", + blob, context.edit_count, __PRETTY_FUNCTION__); +#endif /* sanitize again to ensure not toe-stepping */ context.edit_count = 0; sane = t->sanitize (SANITIZE_ARG_INIT); if (context.edit_count) { +#if HB_DEBUG + fprintf (stderr, "Sanitizer %p requested %d edits in second round; failing %s\n", + blob, context.edit_count, __PRETTY_FUNCTION__); +#endif sane = false; } }