summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-10-24 20:24:31 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-10-24 20:24:31 +0200
commit1491403affea01b072e23ab86311391700bccb57 (patch)
tree9d2310e709811c7f01bb8572132f49374a303df8
parent817ac2e5dad1ce5d0e0ea96fa7f726566251b08d (diff)
downloadmonitoring-plugins-1491403.tar.gz
fixed two PRId64 to PRIu64 in perfdata_uint64
-rw-r--r--plugins/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index f75cf03b..b4214c61 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -615,9 +615,9 @@ char *perfdata_uint64 (const char *label,
615 char *data = NULL; 615 char *data = NULL;
616 616
617 if (strpbrk (label, "'= ")) 617 if (strpbrk (label, "'= "))
618 xasprintf (&data, "'%s'=%" PRId64 "%s;", label, val, uom); 618 xasprintf (&data, "'%s'=%" PRIu64 "%s;", label, val, uom);
619 else 619 else
620 xasprintf (&data, "%s=%" PRId64 "%s;", label, val, uom); 620 xasprintf (&data, "%s=%" PRIu64 "%s;", label, val, uom);
621 621
622 if (warnp) 622 if (warnp)
623 xasprintf (&data, "%s%" PRIu64 ";", data, warn); 623 xasprintf (&data, "%s%" PRIu64 ";", data, warn);