提交 0d77ab8a 编写于 作者: B Behdad Esfahbod

[HB] Improve debug output

上级 268cac4c
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册