summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-29 13:21:53 +0000
committerache <ache@FreeBSD.org>1995-08-29 13:21:53 +0000
commit372b875ec0aab71d90164d5e1a875462ab8e2c1b (patch)
tree6290b1050706f08e73f3f5ce80698a1f854e95f8 /lib/libc/gen/syslog.c
parent4c7f1a709d2a0df88476f644f7c97a67fa212b36 (diff)
downloadFreeBSD-src-372b875ec0aab71d90164d5e1a875462ab8e2c1b.zip
FreeBSD-src-372b875ec0aab71d90164d5e1a875462ab8e2c1b.tar.gz
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.
Diffstat (limited to 'lib/libc/gen/syslog.c')
-rw-r--r--lib/libc/gen/syslog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
index 6eb779b..41f0e9a 100644
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -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)
OpenPOWER on IntegriCloud