This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] Added a timestamp to the logging output by trace_io.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Added a timestamp to the logging output by trace_io.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Oct 2005 14:18:07 +0000
Delivery-date: Mon, 24 Oct 2005 14:15:44 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 98c6c36ac4443ce7f95c87eb317bf13d868e14e0
# Parent  e6591119fda0e488ece39e007f725ed011709996
Added a timestamp to the logging output by trace_io.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r e6591119fda0 -r 98c6c36ac444 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Mon Oct 24 13:11:07 2005
+++ b/tools/xenstore/xenstored_core.c   Mon Oct 24 13:12:42 2005
@@ -178,12 +178,18 @@
        char string[64];
        unsigned int i;
+       time_t now;
+       struct tm *tm;
        if (tracefd < 0)
+       now = time(NULL);
+       tm = localtime(&now);
        write(tracefd, prefix, strlen(prefix));
-       sprintf(string, " %p ", conn);
+       sprintf(string, " %p %0d:%0d:%0d ", 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Added a timestamp to the logging output by trace_io., Xen patchbot -unstable <=