Fix: bad copy paste in enable-channel command
authorDavid Goulet <dgoulet@efficios.com>
Mon, 4 Nov 2013 20:45:04 +0000 (15:45 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 4 Nov 2013 20:45:04 +0000 (15:45 -0500)
Fix coverity issue 1125546.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/enable_channels.c

index b59c05861beeb021b0c1327def90381fe21378a4..c4bbc1170f30b17b5ed0935aa2348db43b8e986c 100644 (file)
@@ -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;
This page took 0.026052 seconds and 4 git commands to generate.