Fix: Reverse incorrect error message argument order
[babeltrace.git] / formats / lttng-live / lttng-live-comm.c
index cd4217f187909ebbb7d6500b05673d01785d2d96..2d4a13761b21d4e6733ff1f8e20593ab2f77c021 100644 (file)
@@ -652,8 +652,8 @@ retry:
        }
        if (ret_len != sizeof(rp)) {
                fprintf(stderr, "[error] get_data_packet: expected %" PRId64
-                               ", received %" PRId64 "\n", ret_len,
-                               sizeof(rp));
+                               ", received %" PRId64 "\n", sizeof(rp),
+                               ret_len);
                ret = -1;
                goto error;
        }
@@ -1467,8 +1467,9 @@ void lttng_live_read(struct lttng_live_ctx *ctx)
 
        sout = container_of(td_write, struct ctf_text_stream_pos,
                        trace_descriptor);
-       if (!sout->parent.event_cb)
+       if (!sout->parent.event_cb) {
                goto end_free;
+       }
 
        ret = lttng_live_create_viewer_session(ctx);
        if (ret < 0) {
@@ -1495,13 +1496,16 @@ void lttng_live_read(struct lttng_live_ctx *ctx)
                int flags;
 
                while (!ctx->session->stream_count) {
-                       if (ctx->session_ids->len == 0)
+                       if (ctx->session_ids->len == 0) {
                                goto end_free;
+                       }
                        ret = ask_new_streams(ctx);
-                       if (ret < 0)
+                       if (ret < 0) {
                                goto end_free;
-                       if (!ctx->session->stream_count)
+                       }
+                       if (!ctx->session->stream_count) {
                                (void) poll(NULL, 0, ACTIVE_POLL_DELAY);
+                       }
                }
 
                g_hash_table_foreach(ctx->session->ctf_traces, add_traces,
This page took 0.026551 seconds and 4 git commands to generate.