From: Mathieu Desnoyers Date: Tue, 23 Aug 2011 15:57:14 +0000 (-0400) Subject: Error message should only appear when return value is negative X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2a80c9d8a69af83bf70044c5a71086626c53a251;p=ust.git Error message should only appear when return value is negative Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 41d1280..40fe4bb 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -249,7 +249,7 @@ restart: case sizeof(lum): DBG("message received\n"); ret = handle_message(sock, &lum); - if (ret) { + if (ret < 0) { ERR("Error handling message\n"); } continue;