From: David Goulet Date: Thu, 22 Sep 2011 21:14:58 +0000 (-0400) Subject: Missing negative sign to interpret error code X-Git-Tag: v2.0-pre14~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=532d79a74ed67913120fc339c2bff925cc6ab2bc;p=lttng-tools.git Missing negative sign to interpret error code Signed-off-by: David Goulet --- diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index a1c7ff89e..bcb43e19d 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -2834,7 +2834,7 @@ static void *thread_manage_clients(void *data) DBG("Sending response (size: %d, retcode: %s)", cmd_ctx->lttng_msg_size, - lttng_get_readable_code(cmd_ctx->llm->ret_code)); + lttng_get_readable_code(-cmd_ctx->llm->ret_code)); ret = send_unix_sock(sock, cmd_ctx->llm, cmd_ctx->lttng_msg_size); if (ret < 0) { ERR("Failed to send data back to client");