tests/plugins: use qemu_plugin_outs for inline stats
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 18 Jul 2024 09:45:14 +0000 (10:45 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 22 Jul 2024 08:38:01 +0000 (09:38 +0100)
commit2d4f2c8cde67820ce3f6138313fa2d6455681384
treeda11403bc0842c0448f537a32c60be825e5fced9
parent94ae227e15bd5ede18a92947412ef47c2b89e269
tests/plugins: use qemu_plugin_outs for inline stats

Using bare printf's in plugins is perfectly acceptable but they do
rather mess up the output of "make check-tcg". Convert the printfs to
use g_string and then output with the plugin output helper which will
already be captured to .pout files by the test harness.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240718094523.1198645-7-alex.bennee@linaro.org>
tests/plugin/inline.c