# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 34b4068704c515d260954b1212ff2d975465af97
# Parent cd1cfbadb75f5fe1611a3c306ca37363c4e8b369
Fix format spec for tracing.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
diff -r cd1cfbadb75f -r 34b4068704c5 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c Tue Oct 25 10:52:56 2005
+++ b/tools/xenstore/xenstored_core.c Tue Oct 25 15:00:49 2005
@@ -188,7 +188,7 @@
tm = localtime(&now);
write(tracefd, prefix, strlen(prefix));
- sprintf(string, " %p %0d:%0d:%0d ", conn, tm->tm_hour, tm->tm_min,
+ sprintf(string, " %p %02d:%02d:%02d ", conn, tm->tm_hour, tm->tm_min,
tm->tm_sec);
write(tracefd, string, strlen(string));
write(tracefd, sockmsg_string(data->hdr.msg.type),
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|