plugin: add qemu_plugin_outs helper
commitca76a66975f018c323cb609c0c55a4c8d4acde3b
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 11 Oct 2019 15:34:05 +0000 (11 16:34 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 28 Oct 2019 15:12:38 +0000 (28 15:12 +0000)
tree924f16d7c93f6d4fe9fe1cba8f818bf1718540ed
parentcbafa2362ab8d96af39d6b01a79ea4ed16d47dda
plugin: add qemu_plugin_outs helper

Having the plugins grab stdout and spew stuff there is a bit ugly and
certainly makes the tests look ugly. Provide a hook back into QEMU
which can be redirected as needed.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Aaron Lindsay <aaron@os.amperecomputing.com>
include/qemu/log.h
include/qemu/qemu-plugin.h
plugins/api.c
plugins/qemu-plugins.symbols
util/log.c