pf plugin: Change warn() to ERROR().
authorStefan Rinkes <stefan.rinkes@gmail.com>
Mon, 25 Apr 2011 20:16:08 +0000 (22:16 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 13 Sep 2012 11:09:18 +0000 (13:09 +0200)
src/pf.c

index 3b8e809..bbac301 100644 (file)
--- 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);
        }