projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve trace output path and config path
[lttng-tools.git]
/
lttng
/
commands
/
create.c
diff --git
a/lttng/commands/create.c
b/lttng/commands/create.c
index 522ebc9c3aa3a6a3eff33015aa06d33dd3a95da6..e76316d219bfe66cb4eb71e0b0289426402249b9 100644
(file)
--- a/
lttng/commands/create.c
+++ b/
lttng/commands/create.c
@@
-27,7
+27,8
@@
#include <unistd.h>
#include "cmd.h"
#include <unistd.h>
#include "cmd.h"
-#include "config.h"
+#include "conf.h"
+#include "utils.h"
static char *opt_output_path;
static char *opt_session_name;
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) {
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;
}
ret = CMD_FATAL;
goto error;
}
@@
-114,7
+117,7
@@
static int create_session()
}
MSG("Session %s created.", session_name);
}
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;
ret = CMD_SUCCESS;
This page took
0.024604 seconds
and
4
git commands to generate.