static bool action_group_contains_notify(const struct lttng_action *action_group)
{
unsigned int i, count;
- enum lttng_action_status status = lttng_action_list_get_count(action_group, &count);
+ const lttng_action_status status = lttng_action_list_get_count(action_group, &count);
if (status != LTTNG_ACTION_STATUS_OK) {
printf("Failed to get action count from action group\n");
continue;
}
- if (!((action_type == LTTNG_ACTION_TYPE_LIST &&
- action_group_contains_notify(action)) ||
- action_type == LTTNG_ACTION_TYPE_NOTIFY)) {
+ if ((action_type != LTTNG_ACTION_TYPE_LIST ||
+ !action_group_contains_notify(action)) &&
+ action_type != LTTNG_ACTION_TYPE_NOTIFY) {
printf("The action of trigger \"%s\" is not \"notify\", skipping.\n",
trigger_name);
continue;