From: Brian Aker Date: Fri, 11 Feb 2011 23:50:41 +0000 (-0800) Subject: Remote debug ubuntu X-Git-Tag: 0.51~43^2~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=fb56c33bb68eef382af7273308b0fbf9448c21e0;p=m6w6%2Flibmemcached Remote debug ubuntu --- 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; } }