diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-07-14 10:03:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-14 10:03:13 +0200 |
commit | da810e0dbe5fb1146c35ebf02fffdbaf4de06e51 (patch) | |
tree | b4a2f887ceb140584370d31fcd2498076183aca0 /plugins | |
parent | 55c0bb748ec04354a5d63e95b3703fcec2cbd588 (diff) | |
parent | c43135a5e5d7b03eaaf557581f7a8cbc86fa7b90 (diff) | |
download | monitoring-plugins-refs/heads/master.tar.gz |
check_ntp_peer: fix invalid conversion in printf
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ntp_peer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 6e76bf23..5c4ff386 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
@@ -707,11 +707,11 @@ int main(int argc, char *argv[]) { | |||
707 | 707 | ||
708 | if (config.do_stratum) { | 708 | if (config.do_stratum) { |
709 | if (sresult == STATE_WARNING) { | 709 | if (sresult == STATE_WARNING) { |
710 | xasprintf(&result_line, "%s, stratum=%l (WARNING)", result_line, ntp_res.stratum); | 710 | xasprintf(&result_line, "%s, stratum=%li (WARNING)", result_line, ntp_res.stratum); |
711 | } else if (sresult == STATE_CRITICAL) { | 711 | } else if (sresult == STATE_CRITICAL) { |
712 | xasprintf(&result_line, "%s, stratum=%l (CRITICAL)", result_line, ntp_res.stratum); | 712 | xasprintf(&result_line, "%s, stratum=%li (CRITICAL)", result_line, ntp_res.stratum); |
713 | } else { | 713 | } else { |
714 | xasprintf(&result_line, "%s, stratum=%l", result_line, ntp_res.stratum); | 714 | xasprintf(&result_line, "%s, stratum=%li", result_line, ntp_res.stratum); |
715 | } | 715 | } |
716 | xasprintf(&perfdata_line, "%s %s", perfdata_line, perfd_stratum(ntp_res.stratum, config.do_stratum, config.stratum_thresholds)); | 716 | xasprintf(&perfdata_line, "%s %s", perfdata_line, perfd_stratum(ntp_res.stratum, config.do_stratum, config.stratum_thresholds)); |
717 | } | 717 | } |