Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktors Tjarve <viktors.tjarve@zabbix.com>2015-11-23 15:20:39 +0300
committerViktors Tjarve <viktors.tjarve@zabbix.com>2015-11-23 15:20:39 +0300
commita68fe6d6b5c77dde75f2fe80e8022ccd0901bfa4 (patch)
tree2bcb091733e69a8c58a50f97da0177f68e8e7a6e /src/zabbix_agent/listener.c
parent3fee813fbd74243d79cc051679b713a09d6616b3 (diff)
...G...... [ZBX-10018] added log entry when no error message is set; minor code optimisation
Diffstat (limited to 'src/zabbix_agent/listener.c')
-rw-r--r--src/zabbix_agent/listener.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zabbix_agent/listener.c b/src/zabbix_agent/listener.c
index f8abe418ba0..f4a427e1842 100644
--- a/src/zabbix_agent/listener.c
+++ b/src/zabbix_agent/listener.c
@@ -72,7 +72,7 @@ static void process_listener(zbx_socket_t *s)
static size_t buffer_alloc = 256;
size_t buffer_offset = 0;
- zabbix_log(LOG_LEVEL_DEBUG, "Sending back [%s: %s]",ZBX_NOTSUPPORTED, *value);
+ zabbix_log(LOG_LEVEL_DEBUG, "Sending back [" ZBX_NOTSUPPORTED ": %s]", *value);
if (NULL == buffer)
buffer = zbx_malloc(buffer, buffer_alloc);
@@ -85,6 +85,8 @@ static void process_listener(zbx_socket_t *s)
ret = zbx_tcp_send_bytes_to(s, buffer, buffer_offset, CONFIG_TIMEOUT);
}
else
+ zabbix_log(LOG_LEVEL_DEBUG, "Sending back [" ZBX_NOTSUPPORTED "]");
+
ret = zbx_tcp_send_to(s, ZBX_NOTSUPPORTED, CONFIG_TIMEOUT);
}