]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
xenstored: print domain id in traces
authorVolodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Thu, 16 Nov 2023 20:56:45 +0000 (20:56 +0000)
committerJulien Grall <jgrall@amazon.com>
Fri, 17 Nov 2023 18:34:19 +0000 (18:34 +0000)
It is very helpful to see domain id why analyzing xenstored
traces. Especially when you are trying to understand which exactly
domain performs an action.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
[jgrall: Use %u rather than %d]
Signed-off-by: Julien Grall <jgrall@amazon.com>
tools/xenstored/core.c

index edd07711db3d51ea77a82540ebff46e5a749ebcd..311764eb0c6a1a5784ded9962f13dea2297746f6 100644 (file)
@@ -135,8 +135,8 @@ static void trace_io(const struct connection *conn,
        now = time(NULL);
        tm = localtime(&now);
 
-       trace("io: %s %p %04d%02d%02d %02d:%02d:%02d %s (",
-             out ? "OUT" : "IN", conn,
+       trace("io: %s %p (d%d) %04d%02d%02d %02d:%02d:%02d %s (",
+             out ? "OUT" : "IN", conn, conn->id,
              tm->tm_year + 1900, tm->tm_mon + 1,
              tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
              sockmsg_string(data->hdr.msg.type));