[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] accel: cleanup error output
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH] accel: cleanup error output |
Date: |
Mon, 17 Jul 2017 08:33:01 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/17/2017 08:21 AM, Laurent Vivier wrote:
> Only emit "XXX accelerator not found", if there are not
> further accelerators listed. eg
>
> accel=kvm:tcg
>
> doesn't print a "KVM accelerator not found" warning
> when it falls back to tcg, but a
>
> accel=kvm
>
> prints a warning, since no fallback is given.
>
> Suggested-by: Daniel P. Berrange <address@hidden>
> Suggested-by: Paolo Bonzini <address@hidden>
> Signed-off-by: Laurent Vivier <address@hidden>
> ---
> accel/accel.c | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
> @@ -110,7 +110,8 @@ void configure_accelerator(MachineState *ms)
>
> if (!accel_initialised) {
> if (!init_failed) {
> - fprintf(stderr, "No accelerator found!\n");
> + fprintf(stderr, "-machine accel=%s: No accelerator found!\n",
It may be worth dropping the '!', as we tend not to shout at the user;
but whether or not you tweak that,
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature