Skip to content

Commit 82cb0ed

Browse files
committed
KVM: selftests: Convert the Hyper-V extended hypercalls test to printf asserts
Convert x86's Hyper-V extended hypercalls test to use printf-based GUEST_ASSERT_EQ(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 06b651d commit 82cb0ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Copyright 2022 Google LLC
99
* Author: Vipin Sharma <[email protected]>
1010
*/
11+
#define USE_GUEST_ASSERT_PRINTF 1
1112

1213
#include "kvm_util.h"
1314
#include "processor.h"
@@ -84,7 +85,7 @@ int main(void)
8485

8586
switch (get_ucall(vcpu, &uc)) {
8687
case UCALL_ABORT:
87-
REPORT_GUEST_ASSERT_2(uc, "arg1 = %ld, arg2 = %ld");
88+
REPORT_GUEST_ASSERT(uc);
8889
break;
8990
case UCALL_DONE:
9091
break;

0 commit comments

Comments
 (0)