projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into pri
[collectd.git]
/
src
/
powerdns.c
diff --git
a/src/powerdns.c
b/src/powerdns.c
index
c715807
..
729a15b
100644
(file)
--- a/
src/powerdns.c
+++ b/
src/powerdns.c
@@
-44,15
+44,12
@@
#endif
#define FUNC_ERROR(func) \
do { \
#endif
#define FUNC_ERROR(func) \
do { \
- char errbuf[1024]; \
- ERROR("powerdns plugin: %s failed: %s", func, \
- sstrerror(errno, errbuf, sizeof(errbuf))); \
+ ERROR("powerdns plugin: %s failed: %s", func, STRERRNO); \
} while (0)
#define SOCK_ERROR(func, sockpath) \
do { \
} while (0)
#define SOCK_ERROR(func, sockpath) \
do { \
- char errbuf[1024]; \
ERROR("powerdns plugin: Socket `%s` %s failed: %s", sockpath, func, \
ERROR("powerdns plugin: Socket `%s` %s failed: %s", sockpath, func, \
-
sstrerror(errno, errbuf, sizeof(errbuf)));
\
+
STRERRNO);
\
} while (0)
#define SERVER_SOCKET LOCALSTATEDIR "/run/pdns.controlsocket"
} while (0)
#define SERVER_SOCKET LOCALSTATEDIR "/run/pdns.controlsocket"
@@
-355,7
+352,7
@@
static void submit(const char *plugin_instance, /* {{{ */
}
if (ds->ds_num != 1) {
}
if (ds->ds_num != 1) {
- ERROR("powerdns plugin: type `%s' has %
zu
data sources, "
+ ERROR("powerdns plugin: type `%s' has %
" PRIsz "
data sources, "
"but I can only handle one.",
type, ds->ds_num);
return;
"but I can only handle one.",
type, ds->ds_num);
return;