X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=34754c7ca139f40077b6ea6e4cb6d81852257e88;hp=0765c823b4209bf4b947a61772837cf1ca7e4947;hb=bbccc3d2cb9f83aecf00a207de9eef68c766bf9c;hpb=74cc1d0fc1cbb2374e812b21d42b44e54f908dc0 diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 0765c823b..34754c7ca 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -101,10 +101,10 @@ static int create_session() } if (have_name) { - ret = asprintf(&traces_path, "%s/" LTTNG_DEFAULT_TRACE_DIR_NAME + ret = asprintf(&traces_path, "%s/" DEFAULT_TRACE_DIR_NAME "/%s-%s", alloc_path, session_name, datetime); } else { - ret = asprintf(&traces_path, "%s/" LTTNG_DEFAULT_TRACE_DIR_NAME + ret = asprintf(&traces_path, "%s/" DEFAULT_TRACE_DIR_NAME "/%s", alloc_path, session_name); }