X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist_triggers.cpp;h=03e567c86d449c317f91df4fd1dd67de04dc014a;hb=b17ed2ad7083d1b0bf45fe3e1bfc4e4ad787aaf3;hp=c9c6c265de053fb66cc3123c338ca6efa42057ac;hpb=2460203ad4c64f0dcdb716e833abee10a79ec092;p=lttng-tools.git diff --git a/src/bin/lttng/commands/list_triggers.cpp b/src/bin/lttng/commands/list_triggers.cpp index c9c6c265d..03e567c86 100644 --- a/src/bin/lttng/commands/list_triggers.cpp +++ b/src/bin/lttng/commands/list_triggers.cpp @@ -1024,11 +1024,10 @@ static void print_one_trigger(const struct lttng_trigger *trigger) action = lttng_trigger_get_const_action(trigger); action_type = lttng_action_get_type(action); if (action_type == LTTNG_ACTION_TYPE_LIST) { - const struct lttng_action *subaction; uint64_t action_path_index = 0; MSG(" actions:"); - for_each_action_const (subaction, action) { + for (auto subaction : lttng::ctl::const_action_list_view(action)) { _MSG(" "); print_one_action(trigger, subaction, &action_path_index, 1); action_path_index++;