Skip to content

Commit ae1539e

Browse files
committed
[Windows] Fix log output
1 parent 6c5e5b6 commit ae1539e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void logger(enum loglevel level, const char *fmt, ...)
112112
#ifdef _WIN32
113113
SYSTEMTIME lt;
114114
GetLocalTime(&lt);
115-
snprintf(fs, 24, "%02d:%02d:%02d.%03d", lt.wHour, lt.wMinute, lt.wSecond, lt.wMilliseconds);
115+
snprintf(fs, fslen, "%02d:%02d:%02d.%03d %s %s", lt.wHour, lt.wMinute, lt.wSecond, lt.wMilliseconds, _level_label[level], fmt);
116116
#else
117117
struct timeval ts;
118118
struct tm *tp;

0 commit comments

Comments
 (0)