From fb56c33bb68eef382af7273308b0fbf9448c21e0 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Fri, 11 Feb 2011 15:50:41 -0800 Subject: [PATCH] Remote debug ubuntu --- libmemcached/io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmemcached/io.c b/libmemcached/io.c index efb0efad..0cef65f0 100644 --- a/libmemcached/io.c +++ b/libmemcached/io.c @@ -408,7 +408,6 @@ static ssize_t _io_write(memcached_server_write_instance_st ptr, sent_length= io_flush(ptr, &rc); if (sent_length == -1) { - fprintf(stderr, "%s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout); return -1; } @@ -658,7 +657,7 @@ static ssize_t io_flush(memcached_server_write_instance_st ptr, default: memcached_quit_server(ptr, true); *error= MEMCACHED_ERRNO; - fprintf(stderr, "%s:%d (%s)\n", __FILE__, __LINE__,__func__);fflush(stdout); + fprintf(stderr, "%s:%d (%s)(%s)\n", __FILE__, __LINE__,__func__, strerror(errno));fflush(stdout); return -1; } } -- 2.30.2