X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel-consumer.c;h=f30c11ccc2fa2be882e77218220b5da7b746ed10;hp=05e30e49cb0b9ff65e88534ae9cec25de2222693;hb=dec56f6cc894de41b312354d360b6a4c09fc199d;hpb=db77f3a32483dd89e4c1237de549a06561dc7b39 diff --git a/src/bin/lttng-sessiond/kernel-consumer.c b/src/bin/lttng-sessiond/kernel-consumer.c index 05e30e49c..f30c11ccc 100644 --- a/src/bin/lttng-sessiond/kernel-consumer.c +++ b/src/bin/lttng-sessiond/kernel-consumer.c @@ -54,7 +54,7 @@ int kernel_consumer_add_channel(struct consumer_socket *sock, /* Get the right path name destination */ if (consumer->type == CONSUMER_DST_LOCAL) { /* Set application path to the destination path */ - ret = snprintf(tmp_path, sizeof(tmp_path), "%s/%s", + ret = snprintf(tmp_path, sizeof(tmp_path), "%s%s", consumer->dst.trace_path, consumer->subdir); if (ret < 0) { PERROR("snprintf metadata path"); @@ -136,7 +136,7 @@ int kernel_consumer_add_metadata(struct consumer_socket *sock, /* Get the right path name destination */ if (consumer->type == CONSUMER_DST_LOCAL) { /* Set application path to the destination path */ - ret = snprintf(tmp_path, sizeof(tmp_path), "%s/%s", + ret = snprintf(tmp_path, sizeof(tmp_path), "%s%s", consumer->dst.trace_path, consumer->subdir); if (ret < 0) { PERROR("snprintf metadata path");