From aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 Feb 2023 17:11:30 +0100 Subject: Adding upstream version 1.38.0. Signed-off-by: Daniel Baumann --- collectors/freebsd.plugin/freebsd_getmntinfo.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'collectors/freebsd.plugin/freebsd_getmntinfo.c') diff --git a/collectors/freebsd.plugin/freebsd_getmntinfo.c b/collectors/freebsd.plugin/freebsd_getmntinfo.c index e8feefc2b..d17cddfc3 100644 --- a/collectors/freebsd.plugin/freebsd_getmntinfo.c +++ b/collectors/freebsd.plugin/freebsd_getmntinfo.c @@ -54,7 +54,7 @@ static void mount_points_cleanup() { struct mount_point *m = mount_points_root, *last = NULL; while(m) { if (unlikely(!m->updated)) { - // info("Removing mount point '%s', linked after '%s'", m->name, last?last->name:"ROOT"); + // collector_info("Removing mount point '%s', linked after '%s'", m->name, last?last->name:"ROOT"); if (mount_points_last_used == m) mount_points_last_used = last; @@ -163,12 +163,12 @@ int do_getmntinfo(int update_every, usec_t dt) { // there is no mount info in sysctl MIBs if (unlikely(!(mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)))) { - error("FREEBSD: getmntinfo() failed"); + collector_error("FREEBSD: getmntinfo() failed"); do_space = 0; - error("DISABLED: disk_space.* charts"); + collector_error("DISABLED: disk_space.* charts"); do_inodes = 0; - error("DISABLED: disk_inodes.* charts"); - error("DISABLED: getmntinfo module"); + collector_error("DISABLED: disk_inodes.* charts"); + collector_error("DISABLED: getmntinfo module"); return 1; } else { int i; @@ -289,7 +289,7 @@ int do_getmntinfo(int update_every, usec_t dt) { } } } else { - error("DISABLED: getmntinfo module"); + collector_error("DISABLED: getmntinfo module"); return 1; } -- cgit v1.2.3