diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-06-06 17:55:25 +0100 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-06-22 15:01:15 -0300 |
commit | 081492ca8ab23f90d56414595ecfd09ddbacb8f6 (patch) | |
tree | bafa1e27962f6c6c9afe680a93aedfd8916502cf /target/i386 | |
parent | ed78467a214595a63af7800a073a03ffe37cd7db (diff) |
i386: improve alignment of CPU model listing
Since the addition of the -IBRS CPU model variants, the descriptions
shown by '-cpu help' are not well aligned, as several model names
overflow the space allowed. Right aligning the CPU model names is also
not attractive, because it obscures the common name prefixes of many
models. The CPU model name field needs to be 4 characters larger, and
be left aligned instead.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20180606165527.17365-2-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 86fb1a4fb8..e1d7157d8c 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -3380,7 +3380,7 @@ static void x86_cpu_list_entry(gpointer data, gpointer user_data) desc = cc->cpu_def->model_id; } - (*s->cpu_fprintf)(s->file, "x86 %16s %-48s\n", + (*s->cpu_fprintf)(s->file, "x86 %-20s %-48s\n", name, desc); g_free(name); } |