Commit 4c38da7e authored by Keir Fraser's avatar Keir Fraser

xenconsoled: Use ISO8601 date stamp format.

Signed-off-by: default avatarMasaki Kanno <kanno.masaki@jp.fujitsu.com>
parent c716fa1a
......@@ -122,7 +122,7 @@ static int write_with_timestamp(int fd, const char *data, size_t sz)
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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment