diff options
author | Marc Hartmayer | 2018-01-09 13:27:02 +0100 |
---|---|---|
committer | Paolo Bonzini | 2018-02-24 01:43:39 +0100 |
commit | 006f1548ac13d67d21865416a0f4e8062df1a85f (patch) | |
tree | 1cd9141b5d751773064f6457556cf0997340792f /include/acpi/acpi_drivers.h | |
parent | tools/kvm_stat: simplify the sortkey function (diff) | |
download | kernel-qcow2-linux-006f1548ac13d67d21865416a0f4e8062df1a85f.tar.gz kernel-qcow2-linux-006f1548ac13d67d21865416a0f4e8062df1a85f.tar.xz kernel-qcow2-linux-006f1548ac13d67d21865416a0f4e8062df1a85f.zip |
tools/kvm_stat: use a namedtuple for storing the values
Use a namedtuple for storing the values as it allows to access the
fields of a tuple via names. This makes the overall code much easier
to read and to understand. Access by index is still possible as
before.
Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Tested-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/acpi/acpi_drivers.h')
0 files changed, 0 insertions, 0 deletions