diff options
author | Andrew Jones <drjones@redhat.com> | 2020-03-10 10:15:55 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:59:04 +0100 |
commit | d9eaf19ecc12668caf280f3d8e24b22ff5ba716b (patch) | |
tree | 81ade0f88a194ae3e7e8a82e2482eaaf9451441b /tools/testing/selftests/kvm/demand_paging_test.c | |
parent | selftests: KVM: s390: fix format strings for access reg test (diff) | |
download | wireguard-linux-d9eaf19ecc12668caf280f3d8e24b22ff5ba716b.tar.xz wireguard-linux-d9eaf19ecc12668caf280f3d8e24b22ff5ba716b.zip |
KVM: selftests: Enable printf format warnings for TEST_ASSERT
Use the format attribute to enable printf format warnings, and
then fix them all.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/demand_paging_test.c')
-rw-r--r-- | tools/testing/selftests/kvm/demand_paging_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/demand_paging_test.c b/tools/testing/selftests/kvm/demand_paging_test.c index ae086c5dc118..8d99b6d78f89 100644 --- a/tools/testing/selftests/kvm/demand_paging_test.c +++ b/tools/testing/selftests/kvm/demand_paging_test.c @@ -384,7 +384,7 @@ static void run_test(enum vm_guest_mode mode, bool use_uffd, */ TEST_ASSERT(guest_num_pages < vm_get_max_gfn(vm), "Requested more guest memory than address space allows.\n" - " guest pages: %lx max gfn: %lx vcpus: %d wss: %lx]\n", + " guest pages: %lx max gfn: %x vcpus: %d wss: %lx]\n", guest_num_pages, vm_get_max_gfn(vm), vcpus, vcpu_memory_bytes); |