Skip to contentSkip to conversation

Fix timestamp of xenconsoled

PTACH Masaki Kanno 1 participant 1 message Feb 15, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

This patch conforms timestamp of xenconsoled to ISO8601.

Best regards,
Kan

tools/console/daemon/io.c +1 -1
diff -r e1dde6f8bc87 tools/console/daemon/io.c
@@ -122,7 +122,7 @@ static int write_with_timestamp(int fd, 
 	char ts[32];
 	time_t now = time(NULL);
 	const struct tm *tmnow = localtime(&now);
-	size_t tslen = strftime(ts, sizeof(ts), "[%d-%m-%Y %H:%M:%S] ", tmnow);
+	size_t tslen = strftime(ts, sizeof(ts), "[%Y-%m-%d %H:%M:%S] ", tmnow);
 
 	memcpy(buf, data, sz);
 	while (sz > 0 && buf[sz-1] == '\r')

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel