projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dpdk: fix utils_dpdk.c clang issue
[collectd.git]
/
src
/
log_logstash.c
diff --git
a/src/log_logstash.c
b/src/log_logstash.c
index
28cc34c
..
de34b0e
100644
(file)
--- a/
src/log_logstash.c
+++ b/
src/log_logstash.c
@@
-160,9
+160,8
@@
static void log_logstash_print(yajl_gen g, int severity,
}
if (fh == NULL) {
}
if (fh == NULL) {
- char errbuf[1024];
fprintf(stderr, "log_logstash plugin: fopen (%s) failed: %s\n", log_file,
fprintf(stderr, "log_logstash plugin: fopen (%s) failed: %s\n", log_file,
-
sstrerror(errno, errbuf, sizeof(errbuf))
);
+
STRERRNO
);
} else {
fprintf(fh, "%s\n", buf);
if (do_close) {
} else {
fprintf(fh, "%s\n", buf);
if (do_close) {