]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove trailing ':' from timestamp
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 22 Nov 2010 13:25:36 +0000 (13:25 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 23 Nov 2010 14:09:58 +0000 (14:09 +0000)
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

index a0849e1a377d50a266fbee43d3600e75f3edce6f..a2582aad4d782b864f4da0b42d900ec0ade8d215 100644 (file)
@@ -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;
     }