Re: [PATCH] KVM: selftests: Treat %llx like %lx when formatting guest printf

From: Sean Christopherson
Date: Wed Oct 04 2023 - 21:31:20 EST


On Thu, 21 Sep 2023 10:16:41 -0700, Sean Christopherson wrote:
> Treat %ll* formats the same as %l* formats when processing printfs from
> the guest so that using e.g. %llx instead of %lx generates the expected
> output. Ideally, unexpected formats would generate compile-time warnings
> or errors, but it's not at all obvious how to actually accomplish that.
>
> Alternatively, guest_vsnprintf() could assert on an unexpected format,
> but since the vast majority of printfs are for failed guest asserts,
> getting *something* printed is better than nothing.
>
> [...]

Applied to kvm-x86 selftests, thanks!

[1/1] KVM: selftests: Treat %llx like %lx when formatting guest printf
https://github.com/kvm-x86/linux/commit/b15e7490a1ef

--
https://github.com/kvm-x86/linux/tree/next