X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fcmd-2-2.cpp;fp=src%2Fbin%2Flttng-relayd%2Fcmd-2-2.cpp;h=9b82b0f25073844c8b0d7bc8b742687bbeb31113;hp=3d9af63a313f5f2a9ff6bf9a6f451d62dcf25578;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hpb=52e345b9ac912d033c2a2c25a170a01cf209839d diff --git a/src/bin/lttng-relayd/cmd-2-2.cpp b/src/bin/lttng-relayd/cmd-2-2.cpp index 3d9af63a3..9b82b0f25 100644 --- a/src/bin/lttng-relayd/cmd-2-2.cpp +++ b/src/bin/lttng-relayd/cmd-2-2.cpp @@ -9,23 +9,25 @@ #define _LGPL_SOURCE -#include -#include +#include "cmd-2-1.hpp" +#include "cmd-2-2.hpp" +#include "utils.hpp" +#include #include #include -#include +#include -#include "cmd-2-2.hpp" -#include "cmd-2-1.hpp" -#include "utils.hpp" +#include /* * cmd_recv_stream_2_2 allocates path_name and channel_name. */ int cmd_recv_stream_2_2(const struct lttng_buffer_view *payload, - char **ret_path_name, char **ret_channel_name, - uint64_t *tracefile_size, uint64_t *tracefile_count) + char **ret_path_name, + char **ret_channel_name, + uint64_t *tracefile_size, + uint64_t *tracefile_count) { int ret; struct lttcomm_relayd_add_stream_2_2 stream_info; @@ -35,7 +37,8 @@ int cmd_recv_stream_2_2(const struct lttng_buffer_view *payload, if (payload->size < sizeof(stream_info)) { ERR("Unexpected payload size in \"cmd_recv_stream_2_2\": expected >= %zu bytes, got %zu bytes", - sizeof(stream_info), payload->size); + sizeof(stream_info), + payload->size); ret = -1; goto error; }