projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d11110
)
pf plugin: Change warn() to ERROR().
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
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) {
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) {
return (-1);
}
if (ioctl(pfdev, DIOCGETSTATUS, &status) == -1) {
-
warn
("DIOCGETSTATUS: %i", pfdev);
+
ERROR
("DIOCGETSTATUS: %i", pfdev);
close(pfdev);
return (-1);
}
close(pfdev);
return (-1);
}
@@
-59,12
+59,12
@@
pf_read(void)
char *names[] = { "searches", "inserts", "removals" };
if ((pfdev = open(pf_device, O_RDONLY)) == -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) {
return (-1);
}
if (ioctl(pfdev, DIOCGETSTATUS, &status) == -1) {
-
warn
("DIOCGETSTATUS: %i", pfdev);
+
ERROR
("DIOCGETSTATUS: %i", pfdev);
close(pfdev);
return (-1);
}
close(pfdev);
return (-1);
}