xen: fix debugtrace clearing
authorJuergen Gross <jgross@suse.com>
Mon, 9 Sep 2019 12:34:37 +0000 (14:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2019 12:34:37 +0000 (14:34 +0200)
commit36b312064b9b94e891c993bd1c70e784a23cfb49
tree038cc55bc0dc9b40778aa3686aae8caf630f390d
parent82239182eb32e4cab5da9a453b5cc931bfd053a6
xen: fix debugtrace clearing

After dumping the debugtrace buffer it is cleared. This results in some
entries not being printed in case the buffer is dumped again before
having wrapped.

While at it remove the trailing zero byte in the buffer as it is no
longer needed. Commit b5e6e1ee8da59f introduced passing the number of
chars to be printed in the related interfaces, so the trailing 0 byte
is no longer required.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/char/console.c