From 3c5892053869ed75168f78a68e49f1935a6ecef0 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 3 Jan 2014 22:37:41 -0800 Subject: Few harmless tweaks to debug logging. --- includes/Printer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/Printer.h b/includes/Printer.h index f1897d3..ad7ba17 100644 --- a/includes/Printer.h +++ b/includes/Printer.h @@ -63,7 +63,12 @@ class Printer { static void vprint(const char * fmt, va_list ap) printfwarning(1, 0) { getPrinter()->_print(fmt, ap); } #ifdef FULLDEBUG - static void elog(uint32_t engine, const char * fmt, ...) printfwarning(2, 3) { va_list ap; va_start(ap, fmt); getPrinter()->_log(M_ENGINE_DEBUG, fmt, ap); } + static void elog(uint32_t engine, const char * fmt, ...) printfwarning(2, 3) { + va_list ap; + va_start(ap, fmt); + getPrinter()->_log(M_ENGINE_DEBUG, fmt, ap); + va_end(ap); + } #else static void elog(uint32_t engine, const char * fmt, ...) { } #endif -- cgit v1.2.3