summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2020-02-24 17:10:49 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 17:57:33 +0100
commit23581ea8ceffb3d2896325e273b4708c3aeae375 (patch)
tree33d56926270f614191e1d485bb4b2c699497e442 /tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
parent562b6b089d64724278de61114da658fb0a516250 (diff)
KVM: selftests: Fix unknown ucall command asserts
The TEST_ASSERT in x86_64/platform_info_test.c would have print 'ucall' instead of 'uc.cmd'. Also fix all uc.cmd format types. Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c')
-rw-r--r--tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c b/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
index 5dfb53546a26..cc17a3d67e1f 100644
--- a/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
+++ b/tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
TEST_ASSERT(false, "%s", (const char *)uc.args[0]);
/* NOT REACHED */
default:
- TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd);
+ TEST_ASSERT(false, "Unknown ucall %lu", uc.cmd);
}
}
}