direct-io.hg

changeset 7492:34b4068704c5

Fix format spec for tracing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Oct 25 16:00:49 2005 +0100 (2005-10-25)
parents cd1cfbadb75f
children 623ccfa55107
files tools/xenstore/xenstored_core.c
line diff
     1.1 --- a/tools/xenstore/xenstored_core.c	Tue Oct 25 11:52:56 2005 +0100
     1.2 +++ b/tools/xenstore/xenstored_core.c	Tue Oct 25 16:00:49 2005 +0100
     1.3 @@ -188,7 +188,7 @@ static void trace_io(const struct connec
     1.4  	tm = localtime(&now);
     1.5  
     1.6  	write(tracefd, prefix, strlen(prefix));
     1.7 -	sprintf(string, " %p %0d:%0d:%0d ", conn, tm->tm_hour, tm->tm_min,
     1.8 +	sprintf(string, " %p %02d:%02d:%02d ", conn, tm->tm_hour, tm->tm_min,
     1.9  		tm->tm_sec);
    1.10  	write(tracefd, string, strlen(string));
    1.11  	write(tracefd, sockmsg_string(data->hdr.msg.type),