X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fted.c;h=ff650a8d5bfa1b7e9ff942cc71576a6f1f7b9b0a;hp=b8036810035823649576e6690260fc3f2fc28335;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=22813e1a6a3d059efc67975893df985052661a7a diff --git a/src/ted.c b/src/ted.c index b8036810..ff650a8d 100644 --- a/src/ted.c +++ b/src/ted.c @@ -36,8 +36,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #if HAVE_TERMIOS_H && HAVE_SYS_IOCTL_H #include @@ -53,8 +53,8 @@ #define DEFAULT_DEVICE "/dev/ttyUSB0" -static char *conf_device = NULL; -static int conf_retries = 0; +static char *conf_device; +static int conf_retries; static int fd = -1; @@ -243,7 +243,7 @@ static int ted_config(const char *key, const char *value) { tmp = atoi(value); if (tmp < 0) { - WARNING("ted plugin: Invalid retry count: %i", tmp); + ERROR("ted plugin: Invalid retry count: %i", tmp); return 1; } conf_retries = tmp;