chiark
/
gitweb
/
~mdw
/
fwd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
096c89c
)
fwd.c (fw_log): Report the timezone in log messages.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 5 Feb 2016 01:07:59 +0000
(
01:07
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 5 Feb 2016 01:07:59 +0000
(
01:07
+0000)
fwd.c
patch
|
blob
|
blame
|
history
diff --git
a/fwd.c
b/fwd.c
index b621f450d099858ac7167578bb32557a6a28beb2..d086ed312a033c63989060f78f282862eb9f03d9 100644
(file)
--- a/
fwd.c
+++ b/
fwd.c
@@
-245,7
+245,7
@@
void fw_log(time_t t, const char *fmt, ...)
t = time(0);
tm = localtime(&t);
DENSURE(&d, 64);
t = time(0);
tm = localtime(&t);
DENSURE(&d, 64);
- d.len += strftime(d.buf, d.sz, "%Y-%m-%d %H:%M:%S ", tm);
+ d.len += strftime(d.buf, d.sz, "%Y-%m-%d %H:%M:%S
%z
", tm);
va_start(ap, fmt);
dstr_vputf(&d, fmt, &ap);
va_end(ap);
va_start(ap, fmt);
dstr_vputf(&d, fmt, &ap);
va_end(ap);