aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 21ab2ad..c2663be 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,4 +1,6 @@
#include "util.h"
+
+#include "split.h"
#include "board.h"
#include "class/cdc/cdc_device.h"
#include "led.h"
@@ -11,7 +13,7 @@
#include <stdio.h>
-char warnlog[512];
+char warnlog[256];
int loglevel = LOG_INFO;
static void
@@ -49,6 +51,9 @@ stdio_log(int level, const char *fmtstr, ...)
va_start(cpy, fmtstr);
vsnprintf(warnlog, sizeof(warnlog), fmtstr, cpy);
va_end(cpy);
+
+ if (split_role == SLAVE)
+ split_warn_master(warnlog);
}
if (level > loglevel)