From: Peter Krempa Date: Mon, 25 Jul 2022 12:14:56 +0000 (+0200) Subject: qemu: monitor: Split up enum strings definitions X-Git-Tag: v8.6.0-rc1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30a067d94c87fd0d634486ebb2d2df98ce1d227c;p=thirdparty%2Flibvirt.git qemu: monitor: Split up enum strings definitions The VIR_ENUM_IMPL macros directly above them list one string per line. Use the same also for qemuMonitorMigrationStatus and qemuMonitorVMStatus. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 9687746703..6ebdeb46f3 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -144,20 +144,37 @@ VIR_ENUM_IMPL(qemuMonitorCPUProperty, VIR_ENUM_IMPL(qemuMonitorMigrationStatus, QEMU_MONITOR_MIGRATION_STATUS_LAST, - "inactive", "setup", - "active", "pre-switchover", - "device", "postcopy-active", - "postcopy-paused", "postcopy-recover", - "completed", "failed", - "cancelling", "cancelled", + "inactive", + "setup", + "active", + "pre-switchover", + "device", + "postcopy-active", + "postcopy-paused", + "postcopy-recover", + "completed", + "failed", + "cancelling", + "cancelled", "wait-unplug", ); VIR_ENUM_IMPL(qemuMonitorVMStatus, QEMU_MONITOR_VM_STATUS_LAST, - "debug", "inmigrate", "internal-error", "io-error", "paused", - "postmigrate", "prelaunch", "finish-migrate", "restore-vm", - "running", "save-vm", "shutdown", "watchdog", "guest-panicked", + "debug", + "inmigrate", + "internal-error", + "io-error", + "paused", + "postmigrate", + "prelaunch", + "finish-migrate", + "restore-vm", + "running", + "save-vm", + "shutdown", + "watchdog", + "guest-panicked", ); typedef enum {