diff options
author | Martin Schwenke <martin@meltin.net> | 2014-10-10 18:46:31 +1100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-10-13 12:27:04 +0200 |
commit | bcf298e7eca07a8869d184ad44c01232a11ba9ea (patch) | |
tree | 3944dd06ed4d365067c15c3d27e3c279d942b879 /lib/util/debug.c | |
parent | 1c2ae58509a19fb4590f4c71277c0f0c0a27f2fd (diff) | |
download | samba-bcf298e7eca07a8869d184ad44c01232a11ba9ea.tar.gz samba-bcf298e7eca07a8869d184ad44c01232a11ba9ea.tar.xz samba-bcf298e7eca07a8869d184ad44c01232a11ba9ea.zip |
lib/util: Add RFC3339 timestamp support to timeval_str_buf()
Note that this can't be done more simply or portably with strftime(3)
since "%z" isn't portable.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Oct 13 12:27:04 CEST 2014 on sn-devel-104
Diffstat (limited to 'lib/util/debug.c')
-rw-r--r-- | lib/util/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 00595957aa..750ad25975 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -983,7 +983,8 @@ bool dbghdrclass(int level, int cls, const char *location, const char *func) } GetTimeOfDay(&tv); - timeval_str_buf(&tv, state.settings.debug_hires_timestamp, &tvbuf); + timeval_str_buf(&tv, false, state.settings.debug_hires_timestamp, + &tvbuf); hs_len = snprintf(header_str, sizeof(header_str), "[%s, %2d", tvbuf.buf, level); |