[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] xenstored: use correct conversion specifier in the tracing function



commit 983aaa533bb664a7b6266faebe5f89cf4c5103a5
Author:     Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
AuthorDate: Tue Nov 21 10:05:58 2023 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Nov 21 10:05:58 2023 +0100

    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: 97f8555acbf3 ("xenstored: print domain id in traces")
    Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
    Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
---
 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,
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.