xenstored: use correct conversion specifier in the tracing function

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: 97f8555acb ("xenstored: print domain id in traces")
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Volodymyr Babchuk authored and Jan Beulich committed 2023-11-21 10:05:58 +01:00
1 parent c9237aa2cf
commit 983aaa533b
1 file changed
+1 -1
+1 -1
View File
@@ -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,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.