From 00d495b8480f661d2a73530f65b69d62d603fa61 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 3 Sep 2012 08:53:45 +0200 Subject: [PATCH] memcached plugin: Fix some error messages. --- src/memcached.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/memcached.c b/src/memcached.c index 59973b0b..a09f45ec 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -79,7 +79,7 @@ static int memcached_connect_unix (memcached_t *st) if (fd < 0) { char errbuf[1024]; - ERROR ("memcached: memcached_connect_unix: socket(2) failed: %s", + ERROR ("memcached plugin: memcached_connect_unix: socket(2) failed: %s", sstrerror (errno, errbuf, sizeof (errbuf))); return (-1); } @@ -114,7 +114,8 @@ static int memcached_connect_inet (memcached_t *st) if (status != 0) { char errbuf[1024]; - ERROR ("memcached: memcached_connect_inet: getaddrinfo(%s,%s) failed: %s", + ERROR ("memcached plugin: memcached_connect_inet: " + "getaddrinfo(%s,%s) failed: %s", host, port, (status == EAI_SYSTEM) ? sstrerror (errno, errbuf, sizeof (errbuf)) @@ -129,7 +130,8 @@ static int memcached_connect_inet (memcached_t *st) if (fd < 0) { char errbuf[1024]; - WARNING ("memcached: memcached_connect_inet: socket(2) failed: %s", + WARNING ("memcached plugin: memcached_connect_inet: " + "socket(2) failed: %s", sstrerror (errno, errbuf, sizeof (errbuf))); continue; } @@ -168,7 +170,8 @@ static int memcached_query_daemon (char *buffer, size_t buffer_size, memcached_t fd = memcached_connect (st); if (fd < 0) { - ERROR ("memcached: Could not connect to daemon."); + ERROR ("memcached plugin: Instance \"%s\" could not connect to daemon.", + st->name); return -1; } -- 2.11.0