summaryrefslogtreecommitdiff
path: root/includes/Printer.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-01-03 22:37:41 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-01-03 22:37:41 -0800
commit3c5892053869ed75168f78a68e49f1935a6ecef0 (patch)
tree9390fb11d03878d9fc4939e231acd58c13d77295 /includes/Printer.h
parent2cb567edc01a251bd6e3216113313b0c94bced95 (diff)
Few harmless tweaks to debug logging.
Diffstat (limited to 'includes/Printer.h')
-rw-r--r--includes/Printer.h7
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