mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
More massaging trace messaging
This commit is contained in:
1 parent
b5fa37cb69
commit
6f45538017
3 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
@@ -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, "");
|
||||
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user