More massaging trace messaging
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 10 May 2012 21:24:43 +0000 (23:24 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 10 May 2012 21:24:43 +0000 (23:24 +0200)
src/hb-open-type-private.hh
src/hb-ot-layout-gsubgpos-private.hh
src/hb-private.hh

index bec78ee..06b7300 100644 (file)
@@ -153,7 +153,7 @@ ASSERT_STATIC (Type::min_size + 1 <= sizeof (_Null##Type))
 
 
 #define TRACE_SANITIZE() \
-       hb_auto_trace_t<HB_DEBUG_SANITIZE, unsigned int> trace (&c->debug_depth, "SANITIZE", this, NULL, "%s", HB_FUNC);
+       hb_auto_trace_t<HB_DEBUG_SANITIZE, unsigned int> trace (&c->debug_depth, "SANITIZE", this, HB_FUNC, "");
 
 
 struct hb_sanitize_context_t
index 79fe640..50e4437 100644 (file)
@@ -69,7 +69,7 @@ static inline uint8_t allocate_lig_id (hb_buffer_t *buffer) {
 #endif
 
 #define TRACE_CLOSURE() \
-       hb_auto_trace_t<HB_DEBUG_CLOSURE, unsigned int> trace (&c->debug_depth, "CLOSURE", this, NULL, "%s", HB_FUNC);
+       hb_auto_trace_t<HB_DEBUG_CLOSURE, unsigned int> trace (&c->debug_depth, "CLOSURE", this, HB_FUNC, "");
 
 
 
@@ -96,7 +96,7 @@ struct hb_closure_context_t
 #endif
 
 #define TRACE_APPLY() \
-       hb_auto_trace_t<HB_DEBUG_APPLY, unsigned int> trace (&c->debug_depth, "APPLY", this, NULL, "%s", HB_FUNC);
+       hb_auto_trace_t<HB_DEBUG_APPLY, unsigned int> trace (&c->debug_depth, "APPLY", this, HB_FUNC, "");
 
 
 
index e02d154..07445c3 100644 (file)
@@ -514,9 +514,9 @@ _hb_debug_msg_va (const char *what,
          fprintf (stderr, "%s", what) &&
          (obj && fprintf (stderr, "(%p)", obj), TRUE) &&
          fprintf (stderr, ": ") &&
-         (func && fprintf (stderr, "%s: ", func), TRUE) &&
          (indented && fprintf (stderr, "%-*d-> ", level + 1, level), TRUE) &&
-         vfprintf (stderr, message, ap) &&
+         (func && fprintf (stderr, "%s: ", func), TRUE) &&
+         (vfprintf (stderr, message, ap), TRUE) &&
          fprintf (stderr, "\n"));
 
   return TRUE;