i386: improve alignment of CPU model listing
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 6 Jun 2018 16:55:25 +0000 (17:55 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 22 Jun 2018 18:01:15 +0000 (15:01 -0300)
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>
target/i386/cpu.c

index 86fb1a4fb8d4ab0fd5d16ad5c31c469e7d866e05..e1d7157d8cd77164e2d5048e305721a47a4f759e 100644 (file)
@@ -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);
 }