diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-05 15:27:42 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-05 15:27:42 -0400 |
commit | 895a98508dc408bd232dadb33bb5ac313b96ffbb (patch) | |
tree | 7ac608f8cf79b24106bd7e5e9e6fee400a7df0c5 /pango | |
parent | 1aab84b8b2ed0f35fcf5265e6b8432d8ecc07162 (diff) | |
download | pango-895a98508dc408bd232dadb33bb5ac313b96ffbb.tar.gz |
[HB] Improve debug output
Diffstat (limited to 'pango')
-rw-r--r-- | pango/opentype/hb-open-type-private.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh index 9bd16e2c..17fec5a6 100644 --- a/pango/opentype/hb-open-type-private.hh +++ b/pango/opentype/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; } } |