Update FREERTOS + LWIP support

This commit is contained in:
Alex Alashkin authored and Alex Alashkin committed 2021-08-12 13:54:43 +03:00
1 parent 104c4fab19
commit 453d4be4d0
6 files changed
+58 -20

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ bool mg_log_prefix(int level, const char *file, int line, const char *fname) {
time_t t = time(NULL);
struct tm tmp, *tm = gmtime_r(&t, &tmp);
int n, tag;
(void)tmp;
strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", tm);
tag = level == LL_ERROR ? 'E' : level == LL_INFO ? 'I' : ' ';
n = snprintf(buf, sizeof(buf), "%s %c %s:%d:%s", timebuf, tag, p, line,