mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Use correct format for strftime().
This commit is contained in:
parent
983f5a03f5
commit
824d6421d5
@ -149,8 +149,8 @@ log_print(int prio, const char *fmt, ...)
|
||||
time(&now);
|
||||
t = localtime(&now);
|
||||
|
||||
if (strftime(tbuf, sizeof(tbuf), "%y-%m-%d %H:%S:%M", t) > 0)
|
||||
fprintf(fp, "%s ", tbuf);
|
||||
if (strftime(tbuf, sizeof(tbuf), "%y-%m-%d %H:%M:%S", t) > 0)
|
||||
fprintf(fp, "[%ld] %s ", now, tbuf);
|
||||
|
||||
vfprintf(fp, fmt, args);
|
||||
fflush(fp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user