From dbf405bf04e0aa490e08a0c4ac952cc59507d8d3 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 22 Nov 2010 13:25:36 +0000 Subject: [PATCH] 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 --- src/util/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5