]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Make kvm_ioctl() a wrapper to pretty print ioctl name
authorSean Christopherson <seanjc@google.com>
Thu, 17 Feb 2022 18:21:36 +0000 (10:21 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 14:20:02 +0000 (10:20 -0400)
commit01a454ec15bf0e86ad0672d9ee62fda7b41158a4
tree6aed502c29f145539fc2026b7e4d574531a3b552
parentd47f8d87496ccd21f03aa93b3d375372f0d9fe6a
KVM: selftests: Make kvm_ioctl() a wrapper to pretty print ioctl name

Make kvm_ioctl() a macro wrapper and print the _name_ of the ioctl on
failure instead of the number.

Deliberately do not use __stringify(), as that will expand the ioctl all
the way down to its numerical sequence, again the intent is to print the
name of the macro.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c