From adf7758a27a11fb1a8a14a2673867589437d22a3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Nov 2012 17:32:00 -0500 Subject: [PATCH] Improve debug log format in presence of templates --- src/hb-private.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index feab7cad..265fba15 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -588,7 +588,11 @@ _hb_debug_msg_va (const char *what, } else fprintf (stderr, " " VRBAR LBAR); - if (func) { + if (func) + { + /* Skip "typename" */ + if (0 == strncmp (func, "typename ", 9)) + func += 9; /* Skip return type */ const char *space = strchr (func, ' '); if (space) -- GitLab