~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fwd.c (fw_log): Report the timezone in log messages.
[fwd]
/
fwd.c
diff --git
a/fwd.c
b/fwd.c
index
df5c821
..
d086ed3
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);
@@
-487,7
+487,7
@@
int main(int argc, char *argv[])
/* --- Standard GNU help options --- */
/* --- Standard GNU help options --- */
- { "help", 0, 0, 'h' },
+ { "help",
0, 0, 'h' },
{ "version", 0, 0, 'v' },
{ "usage", 0, 0, 'u' },
{ "version", 0, 0, 'v' },
{ "usage", 0, 0, 'u' },