[libvirt] [PATCH] Remove trailing ':' from timestamp

Daniel P. Berrange berrange at redhat.com
Mon Nov 22 14:10:59 UTC 2010


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
---
 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 a0849e1..a2582aa 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(&timestamp, "%s.%03d: ",
+    if (virAsprintf(&timestamp, "%s.%03d",
                     timestr, (int) cur_time.tv_usec / 1000) < 0) {
         return NULL;
     }
-- 
1.7.2.3




More information about the libvir-list mailing list