return false;
}
+/* Only expects named triggers. */
static bool is_trigger_name(const char *expected_trigger_name,
struct lttng_notification *notification)
{
const char *trigger_name = NULL;
lttng_trigger_get_name(trigger, &trigger_name);
- if (strcmp(trigger_name, expected_trigger_name)) {
+ if (strcmp(trigger_name, expected_trigger_name) != 0) {
/* Might match the end event trigger */
if (end_trigger_name != NULL &&
strcmp(trigger_name,
- end_trigger_name)) {
+ end_trigger_name) != 0) {
continue;
}
}
- if (!((action_type == LTTNG_ACTION_TYPE_GROUP &&
+ if (!((action_type == LTTNG_ACTION_TYPE_LIST &&
action_list_contains_notify(action)) ||
action_type == LTTNG_ACTION_TYPE_NOTIFY)) {
/* "The action of trigger is not notify, skipping. */