diff options
| author | Lorenz Kästle <lorenz.kaestle@netways.de> | 2025-07-14 09:37:51 +0200 |
|---|---|---|
| committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2025-07-14 09:37:51 +0200 |
| commit | c43135a5e5d7b03eaaf557581f7a8cbc86fa7b90 (patch) | |
| tree | b4a2f887ceb140584370d31fcd2498076183aca0 | |
| parent | 55c0bb748ec04354a5d63e95b3703fcec2cbd588 (diff) | |
| download | monitoring-plugins-c43135a5e5d7b03eaaf557581f7a8cbc86fa7b90.tar.gz | |
check_ntp_peer: fix invalid conversion in printf
| -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 | } |
