From: Jérémie Galarneau Date: Thu, 6 Aug 2015 19:00:45 +0000 (-0400) Subject: Log agent reply in enable_event() X-Git-Tag: v2.8.0-rc1~515 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f4f9d4dbdc89ea5a439390d3084183f2f4b40371;p=lttng-tools.git Log agent reply in enable_event() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index b69e929ca..92307f85f 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -361,6 +361,7 @@ static int enable_event(struct agent_app *app, struct agent_event *event) { int ret; uint64_t data_size; + uint32_t reply_ret_code; struct lttcomm_agent_enable msg; struct lttcomm_agent_generic_reply reply; @@ -392,7 +393,9 @@ static int enable_event(struct agent_app *app, struct agent_event *event) goto error_io; } - switch (be32toh(reply.ret_code)) { + reply_ret_code = be32toh(reply.ret_code); + log_reply_code(reply_ret_code); + switch (reply_ret_code) { case AGENT_RET_CODE_SUCCESS: break; case AGENT_RET_CODE_UNKNOWN_NAME: