diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-01-03 22:37:41 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-01-03 22:37:41 -0800 |
commit | 3c5892053869ed75168f78a68e49f1935a6ecef0 (patch) | |
tree | 9390fb11d03878d9fc4939e231acd58c13d77295 /includes/Printer.h | |
parent | 2cb567edc01a251bd6e3216113313b0c94bced95 (diff) |
Few harmless tweaks to debug logging.
Diffstat (limited to 'includes/Printer.h')
-rw-r--r-- | includes/Printer.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 |