ia64/xen-unstable
changeset 17078:8210e430be2b
xenconsoled: Use ISO8601 date stamp format.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Fri Feb 15 09:51:34 2008 +0000 (2008-02-15) |
parents | 55ae3b66b1b6 |
children | 38b532eea3bf |
files | tools/console/daemon/io.c |
line diff
1.1 --- a/tools/console/daemon/io.c Thu Feb 14 11:24:49 2008 +0000 1.2 +++ b/tools/console/daemon/io.c Fri Feb 15 09:51:34 2008 +0000 1.3 @@ -122,7 +122,7 @@ static int write_with_timestamp(int fd, 1.4 char ts[32]; 1.5 time_t now = time(NULL); 1.6 const struct tm *tmnow = localtime(&now); 1.7 - size_t tslen = strftime(ts, sizeof(ts), "[%d-%m-%Y %H:%M:%S] ", tmnow); 1.8 + size_t tslen = strftime(ts, sizeof(ts), "[%Y-%m-%d %H:%M:%S] ", tmnow); 1.9 1.10 memcpy(buf, data, sz); 1.11 while (sz > 0 && buf[sz-1] == '\r')