X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Fcreate.c;h=e76316d219bfe66cb4eb71e0b0289426402249b9;hp=941f72355426e792987442134061d7569e52cbb3;hb=b082db07f0c522527fc95fc97f3e99eb0579c0cc;hpb=8ce37aa529d4d3cc5503605a5a4355395aeb1bd2 diff --git a/lttng/commands/create.c b/lttng/commands/create.c index 941f72355..e76316d21 100644 --- a/lttng/commands/create.c +++ b/lttng/commands/create.c @@ -28,6 +28,7 @@ #include "cmd.h" #include "conf.h" +#include "utils.h" static char *opt_output_path; static char *opt_session_name; @@ -84,6 +85,8 @@ static int create_session() if (opt_output_path == NULL) { alloc_path = config_get_default_path(); if (alloc_path == NULL) { + ERR("Home path not found.\n \ + Please specify an output path using -o, --output PATH"); ret = CMD_FATAL; goto error; } @@ -114,7 +117,7 @@ static int create_session() } MSG("Session %s created.", session_name); - MSG("Working directory of created session is %s", path); + MSG("Working directory of created session is %s/%s", path, session_name); ret = CMD_SUCCESS;