From: Stefan Berger Date: Tue, 6 Nov 2018 14:08:40 +0000 (-0500) Subject: tests: tpm: Use g_test_message rather than fprintf X-Git-Tag: qemu-xen-4.13.0-rc1~543^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5e58b58c478bd00c807bd7814ccab148d49cc901;p=qemu-xen.git tests: tpm: Use g_test_message rather than fprintf Display a message during the test using g_test_message rather than fprintf. Signed-off-by: Stefan Berger Reviewed-by: Thomas Huth --- diff --git a/tests/tpm-tests.c b/tests/tpm-tests.c index 93a5beba01..582ec0cfd4 100644 --- a/tests/tpm-tests.c +++ b/tests/tpm-tests.c @@ -22,7 +22,7 @@ static bool tpm_test_swtpm_skip(void) { if (!tpm_util_swtpm_has_tpm2()) { - fprintf(stderr, "swtpm not in PATH or missing --tpm2 support; "); + g_test_message("swtpm not in PATH or missing --tpm2 support"); return true; }