X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Fcreate.c;h=e76316d219bfe66cb4eb71e0b0289426402249b9;hp=522ebc9c3aa3a6a3eff33015aa06d33dd3a95da6;hb=b082db07f0c522527fc95fc97f3e99eb0579c0cc;hpb=f3ed775ef4842019b396f06095b053c3a70bc3c8 diff --git a/lttng/commands/create.c b/lttng/commands/create.c index 522ebc9c3..e76316d21 100644 --- a/lttng/commands/create.c +++ b/lttng/commands/create.c @@ -27,7 +27,8 @@ #include #include "cmd.h" -#include "config.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;