Add new API call lttng_channel_set_default_attr
[lttng-tools.git] / lttng-sessiond / main.c
index 988cb57c3910d3421c79d53b28ce61fda8edd6f6..8850fc0f9288463307f14c5bcd79f20c28ab09ff 100644 (file)
@@ -1921,8 +1921,13 @@ static void list_lttng_channels(int domain, struct ltt_session *session,
                                uchan->attr.switch_timer_interval;
                        channels[i].attr.read_timer_interval =
                                uchan->attr.read_timer_interval;
-                       channels[i].attr.output = uchan->attr.output;
                        channels[i].enabled = uchan->enabled;
+                       switch (uchan->attr.output) {
+                       case LTTNG_UST_MMAP:
+                       default:
+                               channels[i].attr.output = LTTNG_EVENT_MMAP;
+                               break;
+                       }
                        i++;
                }
                break;
This page took 0.03232 seconds and 4 git commands to generate.