OSDN Git Service

KVM: selftests: Clean up coding style in binary stats test
authorSean Christopherson <seanjc@google.com>
Mon, 13 Jun 2022 21:25:17 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:46 +0000 (04:51 -0400)
commit143e7eea3d66737c73cc3aa3538123ea3bb1f640
tree702c2414c109aff80c93cfe8c7afc19c36850d78
parent4d0a059415708ec0f221616f187853176d2fbebc
KVM: selftests: Clean up coding style in binary stats test

Fix a variety of code style violations and/or inconsistencies in the
binary stats test.  The 80 char limit is a soft limit and can and should
be ignored/violated if doing so improves the overall code readability.

Specifically, provide consistent indentation and don't split expressions
at arbitrary points just to honor the 80 char limit.

Opportunistically expand/add comments to call out the more subtle aspects
of the code.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220613212523.3436117-5-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c