Fix timestamp of xenconsoled
Hi,
This patch conforms timestamp of xenconsoled to ISO8601.
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/console/daemon/io.c +1 -1
@@ -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