diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-07-08 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-07-08 08:00:00 +0000 |
commit | 5aadbd1b324472352570d9f092ab48e2410667ce (patch) | |
tree | 1e0d7be6842f5d02189de2eb18691d0a30f34164 | |
parent | 43bd136f1e0ab8b7e0a58339bf630dddb6735b61 (diff) | |
download | strace-5aadbd1b324472352570d9f092ab48e2410667ce.tar.gz |
x86_64/arch_kvm: use PRINT_FIELD_X_ARRAY
* linux/x86_64/arch_kvm.c (arch_print_kvm_sregs): Use PRINT_FIELD_X_ARRAY.
-rw-r--r-- | linux/x86_64/arch_kvm.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/linux/x86_64/arch_kvm.c b/linux/x86_64/arch_kvm.c index cb168f34d..f7444d3f8 100644 --- a/linux/x86_64/arch_kvm.c +++ b/linux/x86_64/arch_kvm.c @@ -104,14 +104,7 @@ arch_print_kvm_sregs(struct tcb *const tcp, PRINT_FIELD_U(", ", *sregs, cr8); PRINT_FIELD_U(", ", *sregs, efer); PRINT_FIELD_X(", ", *sregs, apic_base); - tprints(", interrupt_bitmap=["); - - unsigned int i; - for (i = 0; i < ARRAY_SIZE(sregs->interrupt_bitmap); i++) { - if (i != 0) - tprints(", "); - tprintf("%#" PRI__x64, sregs->interrupt_bitmap[i]); - } - tprints("]}"); + PRINT_FIELD_X_ARRAY(", ", *sregs, interrupt_bitmap); + tprints("}"); } #endif /* HAVE_STRUCT_KVM_SREGS */ |