lttng: start: ensure a cmd_error_code is returned by the command
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 19 Apr 2023 19:15:50 +0000 (15:15 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Apr 2023 17:55:24 +0000 (13:55 -0400)
commit9497e2f771b05ba0cf6ca690f24f73cadc8c6e1d
tree99adbdff6a7ec8ad815a2f37fd4956cea769aa51
parent9183bb278808f35193c0d248c537950495c719dc
lttng: start: ensure a cmd_error_code is returned by the command

The start_tracing functions mix cmd_error_code and lttng_error_code
values in "raw" integers which is unexpected by the top-level client.

For instance, the client returns '80' when attempting to start a session
that is already active.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I12c15e8aa3eb960e1e47d5166307995af8c46989
src/bin/lttng/commands/start.cpp
src/bin/lttng/utils.hpp
This page took 0.024925 seconds and 4 git commands to generate.