Fix: lttng-destroy: missing newline on session destruction message
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 1 Apr 2020 22:34:59 +0000 (18:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 1 Apr 2020 22:41:45 +0000 (18:41 -0400)
commit64da6b6e78ec1273564d498e94d4dd008ecc5d29
treeec3550b5fac0783b97725cb55d343a4ece27cade
parent75f3490ae96d1b7f4230e4ff2c08d02f25b23dd1
Fix: lttng-destroy: missing newline on session destruction message

The lost packets/discarded events statistics are printed on the same
line as the session destruction progress message when the session is
stopped as part of the `destroy` command.

This is a consequence of printing the statistics as they are
retrieved; the statistics must be fetched before the destruction,
but the progress indicator is still being printed.

The statistics output is now formatted to a buffer and printed
after the session's destruction has completed.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I2105056b109774a57c83be3e30984038880c0fb7
src/bin/lttng/commands/destroy.c
src/bin/lttng/utils.c
src/bin/lttng/utils.h
This page took 0.029877 seconds and 4 git commands to generate.