From 2a80c9d8a69af83bf70044c5a71086626c53a251 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 23 Aug 2011 11:57:14 -0400 Subject: [PATCH] Error message should only appear when return value is negative Signed-off-by: Mathieu Desnoyers --- libust/lttng-ust-comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 41d1280c..40fe4bb8 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; -- 2.34.1