[monitoring-plugins] fixed two PRId64 to PRIu64 in perfdata_uint64

Andreas Baumann git at monitoring-plugins.org
Mon Oct 24 20:30:11 CEST 2022


 Module: monitoring-plugins
 Branch: pri64_two
 Commit: 1491403affea01b072e23ab86311391700bccb57
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Mon Oct 24 20:24:31 2022 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=1491403

fixed two PRId64 to PRIu64 in perfdata_uint64

---

 plugins/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/utils.c b/plugins/utils.c
index f75cf03..b4214c6 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -615,9 +615,9 @@ char *perfdata_uint64 (const char *label,
 	char *data = NULL;
 
 	if (strpbrk (label, "'= "))
-		xasprintf (&data, "'%s'=%" PRId64 "%s;", label, val, uom);
+		xasprintf (&data, "'%s'=%" PRIu64 "%s;", label, val, uom);
 	else
-		xasprintf (&data, "%s=%" PRId64 "%s;", label, val, uom);
+		xasprintf (&data, "%s=%" PRIu64 "%s;", label, val, uom);
 
 	if (warnp)
 		xasprintf (&data, "%s%" PRIu64 ";", data, warn);



More information about the Commits mailing list