diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/logf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/logf.c b/firmware/logf.c index 0136600e92..d8f036703e 100644 --- a/firmware/logf.c +++ b/firmware/logf.c @@ -212,6 +212,9 @@ void _logf(const char *fmt, ...) char buf[1024]; vsnprintf(buf, sizeof buf, fmt, ap); DEBUGF("%s\n", buf); + /* restart va_list otherwise the result if undefined when vuprintf is called */ + va_end(ap); + va_start(ap, fmt); #endif vuprintf(logf_push, NULL, fmt, ap); |