summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d11110)
raw | patch | inline | side by side (parent: 0d11110)
author | Stefan Rinkes <stefan.rinkes@gmail.com> | |
Mon, 25 Apr 2011 20:16:08 +0000 (22:16 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 13 Sep 2012 11:09:18 +0000 (13:09 +0200) |
src/pf.c | patch | blob | history |
diff --git a/src/pf.c b/src/pf.c
index 3b8e8095e2ee4de535d33c188345e56cf14b7a41..bbac3019f8f128a27a6cde6db54fc9bde7100f79 100644 (file)
--- a/src/pf.c
+++ b/src/pf.c
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);
}
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);
}