From: Sergey Date: Tue, 24 Feb 2015 21:13:00 +0000 (+0100) Subject: snmp plugin: add hostname to "csnmp_instance_list_add" error message X-Git-Tag: collectd-5.5.0~81 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=22d5f76d3379a5f61873c52363116ee4ba67afa4;p=collectd.git snmp plugin: add hostname to "csnmp_instance_list_add" error message Fixes #939 --- diff --git a/src/snmp.c b/src/snmp.c index ab596385..6a35c26b 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1546,7 +1546,8 @@ static int csnmp_read_table (host_definition_t *host, data_definition_t *data) if (csnmp_instance_list_add (&instance_list_head, &instance_list_tail, res, host, data) != 0) { - ERROR ("snmp plugin: csnmp_instance_list_add failed."); + ERROR ("snmp plugin: host %s: csnmp_instance_list_add failed.", + host->name); status = -1; break; }