* [Qemu-devel] [PATCH] vl.c: Increase width of machine name column in "-M ?" output
@ 2012-02-22 22:13 Peter Maydell
2012-02-23 8:06 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2012-02-22 22:13 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, patches
Increase the width of the column used for the machine name in
the "-M ?" output from 10 to 20 spaces. This fixes the formatting
so it looks nice for architectures where a few of the machines
have overly long names. (Our current longest machine name is
"petalogix-s3adsp1800" with "realview-eb-mpcore" not far behind.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
vl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vl.c b/vl.c
index 7a8cc08..f211c71 100644
--- a/vl.c
+++ b/vl.c
@@ -1999,9 +1999,9 @@ static QEMUMachine *machine_parse(const char *name)
printf("Supported machines are:\n");
for (m = first_machine; m != NULL; m = m->next) {
if (m->alias) {
- printf("%-10s %s (alias of %s)\n", m->alias, m->desc, m->name);
+ printf("%-20s %s (alias of %s)\n", m->alias, m->desc, m->name);
}
- printf("%-10s %s%s\n", m->name, m->desc,
+ printf("%-20s %s%s\n", m->name, m->desc,
m->is_default ? " (default)" : "");
}
exit(!name || *name != '?');
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl.c: Increase width of machine name column in "-M ?" output
2012-02-22 22:13 [Qemu-devel] [PATCH] vl.c: Increase width of machine name column in "-M ?" output Peter Maydell
@ 2012-02-23 8:06 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2012-02-23 8:06 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-trivial, qemu-devel, patches
On Wed, Feb 22, 2012 at 10:13:11PM +0000, Peter Maydell wrote:
> Increase the width of the column used for the machine name in
> the "-M ?" output from 10 to 20 spaces. This fixes the formatting
> so it looks nice for architectures where a few of the machines
> have overly long names. (Our current longest machine name is
> "petalogix-s3adsp1800" with "realview-eb-mpcore" not far behind.)
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> vl.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Confirmed that libvirt does not depend on the spacing.
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-23 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 22:13 [Qemu-devel] [PATCH] vl.c: Increase width of machine name column in "-M ?" output Peter Maydell
2012-02-23 8:06 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.