[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] xenstored: use correct conversion specifier in the tracing function
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Date: Mon, 20 Nov 2023 17:54:52 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Kve1c783C17rBE+5Qbtqf0zjZhg6w19eo7cPFwsG0TM=; b=Fv0w4FnmiH8h186jTL5Xv1gTitfhUZaRqks8a4/7pzLPU7eoMOT1ALABaI5g677PXgPWCDx/v/yJv/xG5CZVVVEXWpsWwrwwTJmx9Iz/yG6pzvPquGftEpLUoxflQD1+oFk2pbfxKXSijkqB6qAz+x7njaK84R15Ou3U6S9mo+IW4VJVF2jLTOtUEQeYYp6zXcZVdwN3EgjN4HTZrxflOLPI28cVrO2jT2x5ViDkPIDYXlRRo808AzeWwR2oRTjdr2hhOnVkMzJxnth4ZFdDstperQeGoaASZG4jJYf8l9MwZaekjI9QZUg8A/1Mkv48jkMSVBRJVK6DTTpd1Ib3uQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L51UDomAnVJsNXBi8KhcC1OLsCOocjzHgjCZh6Ev0hjILrNesvSzJGv84g9RnC1fzKZIx1CC8sxKXI0b53Vi/n8WkGiRUagbNnCqzMA4WCU00GWrASqVLEjJw6GNzb06sKcAo395hZgMsoQbmQgxrj5TOcY/IJ0xf48fMUuRZw3tvn+ANaq0YtUtJMwR7h8UVohXi42eCQl4gotftn4kkHBIddelMPZXTwssn9i43GGAPwLPxJceJ+2l07uCRTJ6Wl+kGxf7V1nyX9LhlUWbhjJLL22b3asvLdcMGZnmGBE40eYWQv/7Y+Q8MY6Ycw+vhYCvYqLYWyxPi2WyxNzo4g==
- Cc: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Delivery-date: Mon, 20 Nov 2023 17:55:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHaG9qpkpU9N65Obkmv1tQPzqtBKQ==
- Thread-topic: [PATCH] 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>
---
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
|