projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.8'
[collectd.git]
/
src
/
utils_cmd_getthreshold.c
diff --git
a/src/utils_cmd_getthreshold.c
b/src/utils_cmd_getthreshold.c
index
78f9a75
..
c1f3f56
100644
(file)
--- a/
src/utils_cmd_getthreshold.c
+++ b/
src/utils_cmd_getthreshold.c
@@
-36,9
+36,8
@@
#define print_to_socket(fh, ...) \
if (fprintf(fh, __VA_ARGS__) < 0) { \
#define print_to_socket(fh, ...) \
if (fprintf(fh, __VA_ARGS__) < 0) { \
- char errbuf[1024]; \
WARNING("handle_getthreshold: failed to write to socket #%i: %s", \
WARNING("handle_getthreshold: failed to write to socket #%i: %s", \
- fileno(fh),
sstrerror(errno, errbuf, sizeof(errbuf)));
\
+ fileno(fh),
STRERRNO);
\
return -1; \
}
return -1; \
}
@@
-152,7
+151,7
@@
int handle_getthreshold(FILE *fh, char *buffer) {
i++;
/* Print the response */
i++;
/* Print the response */
- print_to_socket(fh, "%
zu
Threshold found\n", i);
+ print_to_socket(fh, "%
" PRIsz "
Threshold found\n", i);
if (threshold.host[0] != 0)
print_to_socket(fh, "Host: %s\n", threshold.host);
if (threshold.host[0] != 0)
print_to_socket(fh, "Host: %s\n", threshold.host);