From: Eric Blake <eblake@redhat.com>
To: mrezanin@redhat.com, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, armbru@redhat.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH v7] vl.c: Output error on invalid machine type
Date: Fri, 14 Mar 2014 06:36:13 -0600 [thread overview]
Message-ID: <5322F7BD.2060605@redhat.com> (raw)
In-Reply-To: <1394798814-21279-1-git-send-email-mrezanin@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]
On 03/14/2014 06:06 AM, mrezanin@redhat.com wrote:
> From: Miroslav Rezanina <mrezanin@redhat.com>
>
> Output error message using qemu's error_report() function when user
> provides the invalid machine type on the command line. This also saves
> time to find what issue is when you downgrade from one version of qemu
> to another that doesn't support required machine type yet (the version
> user downgraded to have to have this patch applied too, of course).
>
> Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
> ---
> v7:
> - use -machine instead of -M in error help message
> - rebase to commit 0056ae2
>
> v6:
> - print help instead of list supported machines on error
> ---
> vl.c | 21 +++++++++++++--------
> 1 file changed, 13 insertions(+), 8 deletions(-)
>
> + error_report("Unsupported machine type");
> + printf("\nUse -machine help to list supported machines!\n");
I might have used "Use '-machine help' to" to offset what the user is
supposed to type, but I can live with what you have.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-03-14 12:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 12:06 [Qemu-devel] [PATCH v7] vl.c: Output error on invalid machine type mrezanin
2014-03-14 12:36 ` Eric Blake [this message]
2014-03-17 8:04 ` Markus Armbruster
2014-03-17 10:47 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5322F7BD.2060605@redhat.com \
--to=eblake@redhat.com \
--cc=afaerber@suse.de \
--cc=armbru@redhat.com \
--cc=mrezanin@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).