aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-10-26 11:49:57 +0200
committerJuan Quintela <quintela@redhat.com>2018-01-15 12:47:54 +0100
commit6f0f6428351d09dd904bf81b137bdd4fd25ba029 (patch)
tree9261abf330376b8eeb72206b40f85117340e20e5 /migration/migration.c
parent741d4086c856320807a2575389d7c0505578270b (diff)
downloadqemu-6f0f6428351d09dd904bf81b137bdd4fd25ba029.zip
qemu-6f0f6428351d09dd904bf81b137bdd4fd25ba029.tar.gz
qemu-6f0f6428351d09dd904bf81b137bdd4fd25ba029.tar.bz2
migration: print features as on off
Once there, do one thing for line Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 8d23723..19917a4 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -2366,10 +2366,15 @@ void migration_global_dump(Monitor *mon)
{
MigrationState *ms = migrate_get_current();
- monitor_printf(mon, "globals: store-global-state=%d, only_migratable=%d, "
- "send-configuration=%d, send-section-footer=%d\n",
- ms->store_global_state, ms->only_migratable,
- ms->send_configuration, ms->send_section_footer);
+ monitor_printf(mon, "globals:\n");
+ monitor_printf(mon, "store-global-state: %s\n",
+ ms->store_global_state ? "on" : "off");
+ monitor_printf(mon, "only-migratable: %s\n",
+ ms->only_migratable ? "on" : "off");
+ monitor_printf(mon, "send-configuration: %s\n",
+ ms->send_configuration ? "on" : "off");
+ monitor_printf(mon, "send-section-footer: %s\n",
+ ms->send_section_footer ? "on" : "off");
}
#define DEFINE_PROP_MIG_CAP(name, x) \