]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc22f85ec3828de574727d1860ed55d87bb118c1a
tree702c2414c109aff80c93cfe8c7afc19c36850d78
parent3bf38256ed3a9acb3b95fb6d94357985237c7f8a
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