X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist_triggers.cpp;h=e6860380f2a8db0bbbe0cd99c6c1e585fa2200b5;hb=f46376a14da2eb796690cb4e718e8b213839d6ea;hp=f7798b15033f6285ddda88ea06fca61fd9be188e;hpb=d50d200af8d01f4b58a14e384cabd46b1afb4817;p=lttng-tools.git diff --git a/src/bin/lttng/commands/list_triggers.cpp b/src/bin/lttng/commands/list_triggers.cpp index f7798b150..e6860380f 100644 --- a/src/bin/lttng/commands/list_triggers.cpp +++ b/src/bin/lttng/commands/list_triggers.cpp @@ -748,7 +748,6 @@ static void print_condition_event_rule_matches( } static void print_action_errors(const struct lttng_trigger *trigger, - const struct lttng_action *action, const uint64_t *action_path_indexes, size_t action_path_length) { @@ -963,7 +962,7 @@ void print_one_action(const struct lttng_trigger *trigger, } MSG(""); - print_action_errors(trigger, action, action_path_indexes, + print_action_errors(trigger, action_path_indexes, action_path_length); end: @@ -1335,9 +1334,10 @@ int cmd_list_triggers(int argc, const char **argv) while (true) { enum parse_next_item_status status; - status = parse_next_item(argpar_iter, &argpar_item, argv, - true, NULL); - if (status == PARSE_NEXT_ITEM_STATUS_ERROR) { + status = parse_next_item(argpar_iter, &argpar_item, 1, argv, + true, NULL, NULL); + if (status == PARSE_NEXT_ITEM_STATUS_ERROR || + status == PARSE_NEXT_ITEM_STATUS_ERROR_MEMORY) { goto error; } else if (status == PARSE_NEXT_ITEM_STATUS_END) { break;