X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng%2Fcommands%2Fenable_channels.c;h=c4bbc1170f30b17b5ed0935aa2348db43b8e986c;hb=e123b80c5f624ead06e0adf3bc2cc7b9f08e3bd6;hp=b59c05861beeb021b0c1327def90381fe21378a4;hpb=8b0371373c32ffff29e08877033c2a29f89942f9;p=lttng-tools.git 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;