diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 16:11:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 16:11:34 +0000 |
commit | d079b656b4719739b2247dcd9d46e9bec793095a (patch) | |
tree | d2c950c70a776bcf697c963151c5bd959f8a9f03 /collectors/proc.plugin/proc_mdstat.c | |
parent | Releasing debian version 1.37.1-2. (diff) | |
download | netdata-d079b656b4719739b2247dcd9d46e9bec793095a.tar.xz netdata-d079b656b4719739b2247dcd9d46e9bec793095a.zip |
Merging upstream version 1.38.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/proc.plugin/proc_mdstat.c')
-rw-r--r-- | collectors/proc.plugin/proc_mdstat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/collectors/proc.plugin/proc_mdstat.c b/collectors/proc.plugin/proc_mdstat.c index 63e0c68eb..d6e87fd2d 100644 --- a/collectors/proc.plugin/proc_mdstat.c +++ b/collectors/proc.plugin/proc_mdstat.c @@ -135,7 +135,7 @@ int do_proc_mdstat(int update_every, usec_t dt) size_t words = 0; if (unlikely(lines < 2)) { - error("Cannot read /proc/mdstat. Expected 2 or more lines, read %zu.", lines); + collector_error("Cannot read /proc/mdstat. Expected 2 or more lines, read %zu.", lines); return 1; } @@ -212,7 +212,7 @@ int do_proc_mdstat(int update_every, usec_t dt) s = procfile_lineword(ff, l, words - 2); if (unlikely(s[0] != '[')) { - error("Cannot read /proc/mdstat raid health status. Unexpected format: missing opening bracket."); + collector_error("Cannot read /proc/mdstat raid health status. Unexpected format: missing opening bracket."); continue; } str_total = ++s; @@ -227,7 +227,7 @@ int do_proc_mdstat(int update_every, usec_t dt) s++; } if (unlikely(str_total[0] == '\0' || !str_inuse || str_inuse[0] == '\0')) { - error("Cannot read /proc/mdstat raid health status. Unexpected format."); + collector_error("Cannot read /proc/mdstat raid health status. Unexpected format."); continue; } @@ -260,7 +260,7 @@ int do_proc_mdstat(int update_every, usec_t dt) continue; if (unlikely(words < 7)) { - error("Cannot read /proc/mdstat line. Expected 7 params, read %zu.", words); + collector_error("Cannot read /proc/mdstat line. Expected 7 params, read %zu.", words); continue; } @@ -326,9 +326,9 @@ int do_proc_mdstat(int update_every, usec_t dt) raid->mismatch_cnt_filename = strdupz(filename); } if (unlikely(read_single_number_file(raid->mismatch_cnt_filename, &raid->mismatch_cnt))) { - error("Cannot read file '%s'", raid->mismatch_cnt_filename); + collector_error("Cannot read file '%s'", raid->mismatch_cnt_filename); do_mismatch = CONFIG_BOOLEAN_NO; - error("Monitoring for mismatch count has been disabled"); + collector_error("Monitoring for mismatch count has been disabled"); break; } } |