streamline channel_new_default_attr switch statement with coding style
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 25 Nov 2011 10:53:40 +0000 (11:53 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 25 Nov 2011 10:53:40 +0000 (11:53 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-sessiond/channel.c

index 9fd98b82d2d691625b5c55f0b587392d938e976b..6b3329edd301f247a0ed1f641ee829f2f0a065c5 100644 (file)
@@ -52,19 +52,19 @@ struct lttng_channel *channel_new_default_attr(int dom)
        chan->attr.read_timer_interval = DEFAULT_CHANNEL_READ_TIMER;
 
        switch (dom) {
-               case LTTNG_DOMAIN_KERNEL:
-                       chan->attr.subbuf_size = DEFAULT_KERNEL_CHANNEL_SUBBUF_SIZE;
-                       chan->attr.num_subbuf = DEFAULT_KERNEL_CHANNEL_SUBBUF_NUM;
-                       chan->attr.output = DEFAULT_KERNEL_CHANNEL_OUTPUT;
-                       break;
-               case LTTNG_DOMAIN_UST:
-               case LTTNG_DOMAIN_UST_PID:
-                       chan->attr.subbuf_size = DEFAULT_UST_CHANNEL_SUBBUF_SIZE;
-                       chan->attr.num_subbuf = DEFAULT_UST_CHANNEL_SUBBUF_NUM;
-                       chan->attr.output = DEFAULT_UST_CHANNEL_OUTPUT;
-                       break;
-               default:
-                       goto error;     /* Not implemented */
+       case LTTNG_DOMAIN_KERNEL:
+               chan->attr.subbuf_size = DEFAULT_KERNEL_CHANNEL_SUBBUF_SIZE;
+               chan->attr.num_subbuf = DEFAULT_KERNEL_CHANNEL_SUBBUF_NUM;
+               chan->attr.output = DEFAULT_KERNEL_CHANNEL_OUTPUT;
+               break;
+       case LTTNG_DOMAIN_UST:
+       case LTTNG_DOMAIN_UST_PID:
+               chan->attr.subbuf_size = DEFAULT_UST_CHANNEL_SUBBUF_SIZE;
+               chan->attr.num_subbuf = DEFAULT_UST_CHANNEL_SUBBUF_NUM;
+               chan->attr.output = DEFAULT_UST_CHANNEL_OUTPUT;
+               break;
+       default:
+               goto error;     /* Not implemented */
        }
 
        return chan;
This page took 0.034375 seconds and 4 git commands to generate.