From: David Goulet Date: Wed, 20 Jul 2011 15:38:31 +0000 (-0400) Subject: Fix session trace output message X-Git-Tag: v2.0-pre1~3 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=31e43e7f5bb5143687462b08a3eef10782694577 Fix session trace output message Signed-off-by: David Goulet --- diff --git a/lttng/commands/create.c b/lttng/commands/create.c index 4eb9809c7..9fe825140 100644 --- a/lttng/commands/create.c +++ b/lttng/commands/create.c @@ -64,7 +64,7 @@ static void usage(FILE *ofp) */ static int create_session() { - int ret; + int ret, have_name = 0; char name[NAME_MAX]; char *session_name, *traces_path = NULL, *alloc_path = NULL; time_t rawtime; @@ -79,6 +79,7 @@ static int create_session() DBG("Auto session name set to %s", session_name); } else { session_name = opt_session_name; + have_name = 1; } /* Auto output path */ @@ -112,7 +113,11 @@ static int create_session() } MSG("Session %s created.", session_name); - MSG("Traces will be written in %s/%s--