Previous change to xenstored used "%d" to format conn->id while in fact
conn->id has "unsigned int" type, so "%u" should be used.

Fixes: 97f8555acbf3 ("xenstored: print domain id in traces")
Signed-off-by: Volodymyr Babchuk <[email protected]>
---
 tools/xenstored/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xenstored/core.c b/tools/xenstored/core.c
index 311764eb0c..184b130d12 100644
--- a/tools/xenstored/core.c
+++ b/tools/xenstored/core.c
@@ -135,7 +135,7 @@ static void trace_io(const struct connection *conn,
        now = time(NULL);
        tm = localtime(&now);
 
-       trace("io: %s %p (d%d) %04d%02d%02d %02d:%02d:%02d %s (",
+       trace("io: %s %p (d%u) %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,
-- 
2.42.0

Reply via email to