From: Jérémie Galarneau Date: Thu, 1 Jul 2021 13:12:21 +0000 (-0400) Subject: Revert "lttng: add-trigger: print generated trigger name" X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0b5b4a0236f93d69216fa119675e7415ef3d35f9;p=lttng-tools.git Revert "lttng: add-trigger: print generated trigger name" This reverts commit 8310270a50784aced2af5b21ab23bc7bd9dee47f. This change is still under review. Change-Id: If75aa02e2e5daa0bfbcf30bea0a2b54c4aca1fd4 Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index 583dd1903..e7809dc52 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -2406,22 +2406,9 @@ int cmd_add_trigger(int argc, const char **argv) if (ret_code != LTTNG_OK) { goto error; } - } else { - if (!name) { - const char *returned_trigger_name; - const enum lttng_trigger_status trigger_status = - lttng_trigger_get_name(trigger, - &returned_trigger_name); - - if (trigger_status != LTTNG_TRIGGER_STATUS_OK) { - WARN("Failed to retrieve the name generated for the added trigger."); - } else { - MSG("Added trigger '%s'.", - returned_trigger_name); - } - } } + MSG("Trigger registered successfully."); ret = 0; goto end;