projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2755 from dehotot/debug-option-rpms
[collectd.git]
/
src
/
zone.c
diff --git
a/src/zone.c
b/src/zone.c
index
3cd0534
..
16df404
100644
(file)
--- a/
src/zone.c
+++ b/
src/zone.c
@@
-68,9
+68,7
@@
static int zone_read_procfile(char const *pidstr, char const *name, void *buf,
}
if (sread(fd, buf, bufsize) != 0) {
}
if (sread(fd, buf, bufsize) != 0) {
- char errbuf[1024];
- ERROR("zone plugin: Reading \"%s\" failed: %s", procfile,
- sstrerror(errno, errbuf, sizeof(errbuf)));
+ ERROR("zone plugin: Reading \"%s\" failed: %s", procfile, STRERRNO);
close(fd);
return 1;
}
close(fd);
return 1;
}