Generate session name and default output on sessiond's end
[lttng-tools.git] / src / bin / lttng-sessiond / ust-consumer.c
index 575593f03d85139ada759695c92622e217b1f721..6be57e447809cbf1a918490452c2ff893ee9a977 100644 (file)
@@ -65,10 +65,10 @@ static char *setup_trace_path(struct consumer_output *consumer,
        /* Get correct path name destination */
        if (consumer->type == CONSUMER_DST_LOCAL) {
                /* Set application path to the destination path */
-               ret = snprintf(pathname, LTTNG_PATH_MAX, "%s%s%s%s",
+               ret = snprintf(pathname, LTTNG_PATH_MAX, "%s/%s%s/%s",
                                consumer->dst.session_root_path,
                                consumer->chunk_path,
-                               consumer->subdir, ua_sess->path);
+                               consumer->domain_subdir, ua_sess->path);
                if (ret < 0) {
                        PERROR("snprintf channel path");
                        goto error;
@@ -84,10 +84,10 @@ static char *setup_trace_path(struct consumer_output *consumer,
                        }
                }
        } else {
-               ret = snprintf(pathname, LTTNG_PATH_MAX, "%s%s%s%s",
+               ret = snprintf(pathname, LTTNG_PATH_MAX, "%s%s/%s%s",
                                consumer->dst.net.base_dir,
                                consumer->chunk_path,
-                               consumer->subdir,
+                               consumer->domain_subdir,
                                ua_sess->path);
                if (ret < 0) {
                        PERROR("snprintf channel path");
This page took 0.02354 seconds and 4 git commands to generate.