KVM: selftests: Fix printf() format goof in SEV smoke test
authorSean Christopherson <seanjc@google.com>
Fri, 28 Feb 2025 23:38:52 +0000 (15:38 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 3 Mar 2025 15:45:34 +0000 (07:45 -0800)
commit3b2d3db368013729fd2167a0d91fec821dba807c
tree501fe9e0c2784983555404f14d0d2712447ffc61
parentd88ed5fb7c88f404e57fe2b2a6d19fefc35b4dc7
KVM: selftests: Fix printf() format goof in SEV smoke test

Print out the index of mismatching XSAVE bytes using unsigned decimal
format.  Some versions of clang complain about trying to print an integer
as an unsigned char.

  x86/sev_smoke_test.c:55:51: error: format specifies type 'unsigned char'
                                     but the argument has type 'int' [-Werror,-Wformat]

Fixes: 8c53183dbaa2 ("selftests: kvm: add test for transferring FPU state into VMSA")
Link: https://lore.kernel.org/r/20250228233852.3855676-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/sev_smoke_test.c