X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=00844d735c033e73a20b8a975e0bf9db142d2600;hp=61f50dd71041a2a5e80008dbb2da110b75b70a42;hb=3010ef96e10cb15d423eef8f9802fbed78744393;hpb=383d1bfb5084ea5a475e408d3cc9d2e2a3de5b88 diff --git a/net.c b/net.c index 61f50dd7..00844d73 100644 --- a/net.c +++ b/net.c @@ -838,10 +838,11 @@ int recv_pattern(int fd, const char *pattern, size_t bufsize) ret = 1; out: if (ret < 0) { - PARA_NOTICE_LOG("n = %d, did not receive pattern '%s'\n", n, - pattern); + PARA_NOTICE_LOG("did not receive pattern '%s'\n", pattern); if (n > 0) - PARA_NOTICE_LOG("recvd: %s\n", buf); + PARA_NOTICE_LOG("recvd %d bytes: %s\n", n, buf); + else if (n < 0) + PARA_NOTICE_LOG("%s\n", para_strerror(-n)); } free(buf); return ret;