Print message on a successful load command
authorDavid Goulet <dgoulet@efficios.com>
Wed, 26 Mar 2014 15:01:25 +0000 (11:01 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 26 Mar 2014 15:01:25 +0000 (11:01 -0400)
Fixes #754

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/load.c

index 4d38c792b82cc4e9ffe69253b04457410906eb9a..1d0e42bdc5f4ed1c60667ebb72cfbdcea297201d 100644 (file)
@@ -105,6 +105,12 @@ int cmd_load(int argc, const char **argv)
        if (ret) {
                ERR("%s", lttng_strerror(ret));
                ret = -ret;
+       } else {
+               if (opt_load_all) {
+                       MSG("All sessions have been loaded successfully");
+               } else {
+                       MSG("Session %s has been loaded successfully", session_name);
+               }
        }
 end:
        poptFreeContext(pc);
This page took 0.033408 seconds and 4 git commands to generate.