diff options
author | 2010-11-22 13:25:36 +0000 | |
---|---|---|
committer | 2010-11-23 14:09:58 +0000 | |
commit | dbf405bf04e0aa490e08a0c4ac952cc59507d8d3 (patch) | |
tree | 4597059787a302b064e811ca813b850db446c1fe | |
parent | Log all errors at level INFO to stop polluting syslog (diff) | |
download | libvirt-dbf405bf04e0aa490e08a0c4ac952cc59507d8d3.tar.gz libvirt-dbf405bf04e0aa490e08a0c4ac952cc59507d8d3.tar.bz2 libvirt-dbf405bf04e0aa490e08a0c4ac952cc59507d8d3.zip |
Remove trailing ':' from timestamp
The QEMU logger appends a ':' to the timestamp when it deems
it neccessary, so the virTimestamp API should not duplicate
this
* src/util/util.c: Remove trailing ':' from timestamp
-rw-r--r-- | src/util/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util.c b/src/util/util.c index a0849e1a3..a2582aad4 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -2930,7 +2930,7 @@ virTimestamp(void) strftime(timestr, sizeof(timestr), "%Y-%m-%d %H:%M:%S", &time_info); - if (virAsprintf(×tamp, "%s.%03d: ", + if (virAsprintf(×tamp, "%s.%03d", timestr, (int) cur_time.tv_usec / 1000) < 0) { return NULL; } |