From: Mathieu Desnoyers Date: Fri, 25 Nov 2011 10:53:40 +0000 (+0100) Subject: streamline channel_new_default_attr switch statement with coding style X-Git-Tag: v2.0-pre15~72 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1b1c65fad7e196d52a3333450302096c14937874;p=lttng-tools.git streamline channel_new_default_attr switch statement with coding style Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-sessiond/channel.c b/lttng-sessiond/channel.c index 9fd98b82d..6b3329edd 100644 --- a/lttng-sessiond/channel.c +++ b/lttng-sessiond/channel.c @@ -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;