AcpiEventStatusBits defines bits in a bitmask. Having it in decimal notation is rather uncommon. Make it more clear which bits are meant there.
No functional change. Signed-off-by: Christian Ludwig <clud...@genua.de> --- include/hw/acpi/acpi_dev_interface.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/hw/acpi/acpi_dev_interface.h b/include/hw/acpi/acpi_dev_interface.h index 3c2e4e9..f526a6c 100644 --- a/include/hw/acpi/acpi_dev_interface.h +++ b/include/hw/acpi/acpi_dev_interface.h @@ -7,11 +7,11 @@ /* These values are part of guest ABI, and can not be changed */ typedef enum { - ACPI_PCI_HOTPLUG_STATUS = 2, - ACPI_CPU_HOTPLUG_STATUS = 4, - ACPI_MEMORY_HOTPLUG_STATUS = 8, - ACPI_NVDIMM_HOTPLUG_STATUS = 16, - ACPI_VMGENID_CHANGE_STATUS = 32, + ACPI_PCI_HOTPLUG_STATUS = (1 << 1), + ACPI_CPU_HOTPLUG_STATUS = (1 << 2), + ACPI_MEMORY_HOTPLUG_STATUS = (1 << 3), + ACPI_NVDIMM_HOTPLUG_STATUS = (1 << 4), + ACPI_VMGENID_CHANGE_STATUS = (1 << 5), } AcpiEventStatusBits; #define TYPE_ACPI_DEVICE_IF "acpi-device-interface" -- 2.1.4