summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/dirty_log_test.c
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2020-03-10 10:15:56 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 17:59:05 +0100
commitd0aac3320d1f15ae2113ddf210945c3686951330 (patch)
tree8bd78ea12f488e9e4758dec1993b34bfa7b3de6b /tools/testing/selftests/kvm/dirty_log_test.c
parentd9eaf19ecc12668caf280f3d8e24b22ff5ba716b (diff)
downloadlwn-d0aac3320d1f15ae2113ddf210945c3686951330.tar.gz
lwn-d0aac3320d1f15ae2113ddf210945c3686951330.zip
KVM: selftests: Use consistent message for test skipping
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/dirty_log_test.c')
-rw-r--r--tools/testing/selftests/kvm/dirty_log_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/dirty_log_test.c b/tools/testing/selftests/kvm/dirty_log_test.c
index 8a79f5d6b979..051791e0f5fb 100644
--- a/tools/testing/selftests/kvm/dirty_log_test.c
+++ b/tools/testing/selftests/kvm/dirty_log_test.c
@@ -437,8 +437,7 @@ int main(int argc, char *argv[])
dirty_log_manual_caps =
kvm_check_cap(KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2);
if (!dirty_log_manual_caps) {
- fprintf(stderr, "KVM_CLEAR_DIRTY_LOG not available, "
- "skipping tests\n");
+ print_skip("KVM_CLEAR_DIRTY_LOG not available");
exit(KSFT_SKIP);
}
dirty_log_manual_caps &= (KVM_DIRTY_LOG_MANUAL_PROTECT_ENABLE |