diff --git a/firmware/logf.c b/firmware/logf.c index 8817d4df45..76b017c092 100644 --- a/firmware/logf.c +++ b/firmware/logf.c @@ -207,6 +207,13 @@ void _logf(const char *fmt, ...) va_list ap; va_start(ap, fmt); + +#ifdef SIMULATOR + char buf[1024]; + vsnprintf(buf, sizeof buf, fmt, ap); + DEBUGF("%s\n", buf); +#endif + vfnprintf(logf_push, NULL, fmt, ap); va_end(ap);