* [PATCH] xenstored: use correct conversion specifier in the tracing function
@ 2023-11-20 17:54 Volodymyr Babchuk
2023-11-21 6:50 ` Juergen Gross
0 siblings, 1 reply; 2+ messages in thread
From: Volodymyr Babchuk @ 2023-11-20 17:54 UTC (permalink / raw)
To: xen-devel
Cc: Volodymyr Babchuk, Wei Liu, Juergen Gross, Julien Grall, Anthony PERARD
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@epam.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xenstored: use correct conversion specifier in the tracing function
2023-11-20 17:54 [PATCH] xenstored: use correct conversion specifier in the tracing function Volodymyr Babchuk
@ 2023-11-21 6:50 ` Juergen Gross
0 siblings, 0 replies; 2+ messages in thread
From: Juergen Gross @ 2023-11-21 6:50 UTC (permalink / raw)
To: Volodymyr Babchuk, xen-devel; +Cc: Wei Liu, Julien Grall, Anthony PERARD
[-- Attachment #1.1.1: Type: text/plain, Size: 377 bytes --]
On 20.11.23 18:54, Volodymyr Babchuk wrote:
> 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@epam.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-21 6:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-20 17:54 [PATCH] xenstored: use correct conversion specifier in the tracing function Volodymyr Babchuk
2023-11-21 6:50 ` Juergen Gross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.