]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Make vm_ioctl() a wrapper to pretty print ioctl name
authorSean Christopherson <seanjc@google.com>
Tue, 15 Feb 2022 20:06:02 +0000 (12:06 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 14:18:58 +0000 (10:18 -0400)
commit9577609094ce55051b6e5a09a383f229f96d20a2
tree6554f45293fab9abe36039a61ff19a03579aacaf
parentc8002401b26bf2ace788e515b86988841ef47e3a
KVM: selftests: Make vm_ioctl() a wrapper to pretty print ioctl name

Make vm_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