X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.c;h=6c780d39d781e434a0be5a1981d71b6dff9c87b5;hb=7e182a6eacc09a5de22ae1ed8eddd1aeb0edef33;hp=975f9318a2613bad86f4a8471ced21d3219b7770;hpb=d9360bf7037f21b85b3ef010990a65d253ead3fd;p=lttng-tools.git diff --git a/src/bin/lttng/commands/destroy.c b/src/bin/lttng/commands/destroy.c index 975f9318a..6c780d39d 100644 --- a/src/bin/lttng/commands/destroy.c +++ b/src/bin/lttng/commands/destroy.c @@ -97,10 +97,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(".");