From: David Goulet Date: Mon, 4 Nov 2013 20:45:04 +0000 (-0500) Subject: Fix: bad copy paste in enable-channel command X-Git-Tag: v2.4.0-rc1~81 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e123b80c5f624ead06e0adf3bc2cc7b9f08e3bd6;p=lttng-tools.git Fix: bad copy paste in enable-channel command Fix coverity issue 1125546. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/enable_channels.c b/src/bin/lttng/commands/enable_channels.c index b59c05861..c4bbc1170 100644 --- a/src/bin/lttng/commands/enable_channels.c +++ b/src/bin/lttng/commands/enable_channels.c @@ -392,7 +392,7 @@ int cmd_enable_channels(int argc, const char **argv) order = get_count_order_u64(chan.attr.num_subbuf); assert(order >= 0); rounded_size = 1ULL << order; - if (rounded_size < chan.attr.subbuf_size) { + if (rounded_size < chan.attr.num_subbuf) { ERR("The number of subbuffers (%" PRIu64 ") is rounded and overflows!", chan.attr.num_subbuf); ret = CMD_ERROR;