mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
National date/time representation in syslog logfiles looks ugly,
change strftime to ctime. Logfiles must have default (english) date/time representation for access/view from various places.
This commit is contained in:
parent
4f898a4b38
commit
85b3ab5887
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10414
@ -121,8 +121,7 @@ vsyslog(pri, fmt, ap)
|
||||
/* Build the message. */
|
||||
(void)time(&now);
|
||||
p = tbuf + sprintf(tbuf, "<%d>", pri);
|
||||
p += strftime(p, sizeof (tbuf) - (p - tbuf), "%h %e %T ",
|
||||
localtime(&now));
|
||||
p += sprintf(p, "%.15s ", ctime(&now) + 4);
|
||||
if (LogStat & LOG_PERROR)
|
||||
stdp = p;
|
||||
if (LogTag == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user