projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preliminary work for full UST support
[lttng-tools.git]
/
lttng
/
commands
/
set_session.c
diff --git
a/lttng/commands/set_session.c
b/lttng/commands/set_session.c
index 86e81f513fa07667eac2b59849d98c06a6b92c4f..8a76403ad43d922eeb31c679a8632c88e5d7d876 100644
(file)
--- a/
lttng/commands/set_session.c
+++ b/
lttng/commands/set_session.c
@@
-25,9
+25,9
@@
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
-#include "cmd.h"
-#include "conf.h"
-#include "utils.h"
+#include "
../
cmd.h"
+#include "
../
conf.h"
+#include "
../
utils.h"
static char *opt_session_name;
static char *opt_session_name;
@@
-59,17
+59,10
@@
static void usage(FILE *ofp)
static int set_session(void)
{
int ret = CMD_SUCCESS;
static int set_session(void)
{
int ret = CMD_SUCCESS;
- char *path;
- path = config_get_default_path();
- if (path == NULL) {
- ret = -1;
- goto error;
- }
-
- ret = config_add_session_name(path, opt_session_name);
+ ret = config_init(opt_session_name);
if (ret < 0) {
if (ret < 0) {
- ERR("Unable to
add session name to config
");
+ ERR("Unable to
set session name
");
ret = CMD_ERROR;
goto error;
}
ret = CMD_ERROR;
goto error;
}
This page took
0.023581 seconds
and
4
git commands to generate.