From: Jérémie Galarneau Date: Fri, 16 Nov 2018 21:46:36 +0000 (-0500) Subject: Fix: cmd_snapshot_record can return unexpected error codes X-Git-Tag: v2.12.0-rc1~744 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9a6545985844978f34f88b82bf1bcd649968c0a3;hp=9a6545985844978f34f88b82bf1bcd649968c0a3 Fix: cmd_snapshot_record can return unexpected error codes cmd_snapshot_record() does not correctly handle the various error reporting conventions used by the functions it uses. In certain cases, invalid error codes (not part of enum lttng_error_code) can bubble up to the command handler which results in erroneous error messages being reported by the client. This change harmonizes the error handling and changes a number of functions used to explicitly return 'enum lttng_error_code' instead of 'int'. Signed-off-by: Jérémie Galarneau ---