Revert "lttng: add-trigger: print generated trigger name"
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jul 2021 13:12:21 +0000 (09:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jul 2021 13:12:49 +0000 (09:12 -0400)
This reverts commit 8310270a50784aced2af5b21ab23bc7bd9dee47f.

This change is still under review.

Change-Id: If75aa02e2e5daa0bfbcf30bea0a2b54c4aca1fd4
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/add_trigger.c

index 583dd1903400dccca12d89ec7ee92cad380a7ac7..e7809dc521362408cc2df6b3ed58dddc5f55d2a8 100644 (file)
@@ -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;
This page took 0.025954 seconds and 4 git commands to generate.