X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.c;h=2e473f519f3c52924eb7f3c40ac30b8ff8870ab0;hp=eed1fe5c5878fc15679009c64b18e0788adf0cf9;hb=dec2c8e12255d3533664cba9042f0d051c4207ac;hpb=fbd55aaefb30b4cda8d25a02975559724d387e55 diff --git a/src/bin/lttng/commands/destroy.c b/src/bin/lttng/commands/destroy.c index eed1fe5c5..2e473f519 100644 --- a/src/bin/lttng/commands/destroy.c +++ b/src/bin/lttng/commands/destroy.c @@ -87,10 +87,13 @@ static int destroy_session(struct lttng_session *session) * availability. */ if (ret) { - _MSG("Destroying session %s", session->name); - newline_needed = true; - printed_destroy_msg = true; - fflush(stdout); + if (!printed_destroy_msg) { + _MSG("Destroying session %s", + session->name); + newline_needed = true; + printed_destroy_msg = true; + fflush(stdout); + } usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US); _MSG(".");