KVM: selftests: Annotate guest ucall, printf, and assert helpers with __printf()
authorSean Christopherson <seanjc@google.com>
Wed, 29 Nov 2023 22:49:16 +0000 (14:49 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Dec 2023 16:15:41 +0000 (08:15 -0800)
commit1b2658e4c709135fe1910423d3216632f641baf9
treee7a2334f4a1cf840b1c3903fd3dfef2ce06076b4
parentf813e6d41baf2bbdd1624f9f01ac4f365eb78891
KVM: selftests: Annotate guest ucall, printf, and assert helpers with __printf()

Annotate guest printf helpers with __printf() so that the compiler will
warn about incorrect formatting at compile time (see git log for how easy
it is to screw up with the formatting).

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20231129224916.532431-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/test_util.h
tools/testing/selftests/kvm/include/ucall_common.h