From: Stefan Rinkes Date: Mon, 25 Apr 2011 20:16:08 +0000 (+0200) Subject: pf plugin: Change warn() to ERROR(). X-Git-Tag: collectd-5.2.0~12^2~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=92c19723b578f03b12c83a87a7f4fce8c5fc5a20;p=collectd.git pf plugin: Change warn() to ERROR(). --- diff --git a/src/pf.c b/src/pf.c index 3b8e8095..bbac3019 100644 --- a/src/pf.c +++ b/src/pf.c @@ -30,12 +30,12 @@ pf_init(void) int pfdev = -1; if ((pfdev = open(pf_device, O_RDONLY)) == -1) { - warn("unable to open %s", pf_device); + ERROR("unable to open %s", pf_device); return (-1); } if (ioctl(pfdev, DIOCGETSTATUS, &status) == -1) { - warn("DIOCGETSTATUS: %i", pfdev); + ERROR("DIOCGETSTATUS: %i", pfdev); close(pfdev); return (-1); } @@ -59,12 +59,12 @@ pf_read(void) char *names[] = { "searches", "inserts", "removals" }; if ((pfdev = open(pf_device, O_RDONLY)) == -1) { - warn("unable to open %s", pf_device); + ERROR("unable to open %s", pf_device); return (-1); } if (ioctl(pfdev, DIOCGETSTATUS, &status) == -1) { - warn("DIOCGETSTATUS: %i", pfdev); + ERROR("DIOCGETSTATUS: %i", pfdev); close(pfdev); return (-1); }