From: Florian Forster Date: Mon, 5 Jul 2010 07:26:44 +0000 (+0200) Subject: exec plugin: Remove backwards compatibility code. X-Git-Tag: collectd-5.0.0-beta0~98 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a72332c0ac9a2d806ac2a7bd5f8750d5b41f0bab;p=collectd.git exec plugin: Remove backwards compatibility code. --- diff --git a/src/exec.c b/src/exec.c index c64f949f..9aabe9fc 100644 --- a/src/exec.c +++ b/src/exec.c @@ -541,12 +541,9 @@ static int parse_line (char *buffer) /* {{{ */ return (handle_putnotif (stdout, buffer)); else { - /* For backwards compatibility */ - char tmp[1220]; - /* Let's annoy the user a bit.. */ - INFO ("exec plugin: Prepending `PUTVAL' to this line: %s", buffer); - ssnprintf (tmp, sizeof (tmp), "PUTVAL %s", buffer); - return (handle_putval (stdout, tmp)); + ERROR ("exec plugin: Unable to parse command, ignoring line: \"%s\"", + buffer); + return (-1); } } /* int parse_line }}} */