From 01133ccb0ee31f7108f7cb4e89454f2693df912e Mon Sep 17 00:00:00 2001 From: guanglei Date: Thu, 1 Jun 2006 05:46:35 +0000 Subject: make user able to append extra trace data. The way of logging backtrace is also changed. lket_trace_extra() and lket_backtrace() are introduced for these two purpose. I also modified lket.5.in for the backtrace changes --- translate.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 30d3bd62..2ee2aac2 100644 --- a/translate.cxx +++ b/translate.cxx @@ -3591,7 +3591,10 @@ c_unparser::visit_print_format (print_format* e) if (e->print_to_stream) { o->newline() << res.qname() << " = 0;"; - o->newline() << "_stp_printf ("; + if(e->lket_trace_extra) + o->newline() << "_lket_trace_extra ("; + else + o->newline() << "_stp_printf ("; } else o->newline() << "_stp_snprintf (" << res.qname() << ", MAXSTRINGLEN, "; -- cgit