From: Daniel P. Berrange Date: Mon, 22 Nov 2010 13:25:36 +0000 (+0000) Subject: Remove trailing ':' from timestamp X-Git-Tag: v0.8.6~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf405bf04e0aa490e08a0c4ac952cc59507d8d3;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/util/util.c b/src/util/util.c index a0849e1a37..a2582aad4d 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; }