pack/openwrt-minieap/patches/004-fix-logging-buffer.patch
2023-08-05 02:39:21 +08:00

14 lines
318 B
Diff

--- a/util/logging.c
+++ b/util/logging.c
@@ -114,9 +114,9 @@ void start_log() {
g_dest = LOG_TO_CONSOLE;
PR_ERRNO("日志文件打开失败,将输出至控制台");
}
- setvbuf(g_log_fp, NULL, _IOLBF, BUFSIZ);
break;
}
+ setvbuf(g_log_fp, NULL, _IOLBF, BUFSIZ);
}
void close_log() {