diff options
author | Peter Xu | 2017-04-01 10:18:44 +0200 |
---|---|---|
committer | Juan Quintela | 2017-04-21 12:25:41 +0200 |
commit | d80a0169e3e7e8e6ae9c2bdf512d0842554c02d1 (patch) | |
tree | ccc76c01baac4633faf8ba736bd53005cc3ce364 | |
parent | migration: rename max_size to threshold_size (diff) | |
download | qemu-d80a0169e3e7e8e6ae9c2bdf512d0842554c02d1.tar.gz qemu-d80a0169e3e7e8e6ae9c2bdf512d0842554c02d1.tar.xz qemu-d80a0169e3e7e8e6ae9c2bdf512d0842554c02d1.zip |
hmp: info migrate_capability format tunes
Dump the info in a single line is hard to read. Do it one per line.
Also, the first "capabilities:" didn't help much. Let's remove it.
CC: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r-- | hmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -268,13 +268,11 @@ void hmp_info_migrate_capabilities(Monitor *mon, const QDict *qdict) caps = qmp_query_migrate_capabilities(NULL); if (caps) { - monitor_printf(mon, "capabilities: "); for (cap = caps; cap; cap = cap->next) { - monitor_printf(mon, "%s: %s ", + monitor_printf(mon, "%s: %s\n", MigrationCapability_lookup[cap->value->capability], cap->value->state ? "on" : "off"); } - monitor_printf(mon, "\n"); } qapi_free_MigrationCapabilityStatusList(caps); |