KVM: selftests: Add printf attribute to _no_printf()
authorIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 13 Dec 2024 22:30:00 +0000 (14:30 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 8 Jan 2025 20:56:31 +0000 (12:56 -0800)
commitbd7791078ac223f5e96810c36b5cddf767945d3d
treecfa6c30f3498fb6d1c1c291d5752a3e01d228271
parent3cd19f150ac62baef04c3b1808109dce566a485f
KVM: selftests: Add printf attribute to _no_printf()

Annotate the KVM selftests' _no_printf() with the printf format attribute
so that the compiler can help check parameters provided to pr_debug() and
pr_info() irrespective of DEBUG and QUIET being defined.

[reinette: move attribute right after storage class, rework changelog]

Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/898ec01580f6f4af5655805863239d6dce0d3fb3.1734128510.git.reinette.chatre@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/test_util.h