Add channel ID field to attr
[lttng-ust.git] / liblttng-ust-ctl / ustctl.c
index 760e0403c887e1c243804399e61390d9b9fb5cd2..375b4db5c14b64876a0912987d87b121fe4f4839 100644 (file)
@@ -756,9 +756,7 @@ int ustctl_send_channel_to_ust(int sock, int session_handle,
                return ret;
        ret = ustcomm_recv_app_reply(sock, &lur, lum.handle, lum.cmd);
        if (!ret) {
-               if (lur.ret_val >= 0) {
-                       channel_data->handle = lur.ret_val;
-               }
+               channel_data->handle = lur.ret_val;
        }
        return ret;
 }
@@ -962,7 +960,7 @@ struct ustctl_consumer_channel *
                        attr->subbuf_size, attr->num_subbuf,
                        attr->switch_timer_interval,
                        attr->read_timer_interval,
-                       attr->uuid);
+                       attr->uuid, attr->chan_id);
        if (!chan->chan) {
                goto chan_error;
        }
This page took 0.025513 seconds and 4 git commands to generate.