From: Stefan Hajnoczi <stefanha@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: "Stefan Weil" <sw@weilnetz.de>,
"Alistair Francis" <alistair.francis@xilinx.com>,
qemu-devel@nongnu.org, "Kevin Wolf" <kwolf@redhat.com>,
qemu-block@nongnu.org, armbru@redhat.com,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
alistair23@gmail.com, "Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 42/46] util: Replace fprintf(stderr, "*\n" with error_report()
Date: Fri, 20 Oct 2017 12:47:39 +0200 [thread overview]
Message-ID: <20171020104739.GC27352@stefanha-x1.localdomain> (raw)
In-Reply-To: <4d22f16a-15ce-3ac5-9812-83a4f9197b48@redhat.com>
On Fri, Oct 20, 2017 at 08:27:41AM +0200, Thomas Huth wrote:
> On 19.10.2017 21:47, Stefan Weil wrote:
> > Am 19.10.2017 um 19:53 schrieb Thomas Huth:
> >> On 19.10.2017 18:18, Alistair Francis wrote:
> >>> Replace a large number of the fprintf(stderr, "*\n" calls with
> >>> error_report(). The functions were renamed with these commands and then
> >>> compiler issues where manually fixed.
> >> [...]
> >>> diff --git a/util/aio-posix.c b/util/aio-posix.c
> >>> index 5946ac09f0..29fff51fcf 100644
> >>> --- a/util/aio-posix.c
> >>> +++ b/util/aio-posix.c
> >>> @@ -15,6 +15,7 @@
> >>>
> >>> #include "qemu/osdep.h"
> >>> #include "qemu-common.h"
> >>> +#include "qemu/error-report.h"
> >>> #include "block/block.h"
> >>> #include "qemu/rcu_queue.h"
> >>> #include "qemu/sockets.h"
> >>> @@ -703,8 +704,8 @@ void aio_context_setup(AioContext *ctx)
> >>> {
> >>> /* TODO remove this in final patch submission */
> >>> if (getenv("QEMU_AIO_POLL_MAX_NS")) {
> >>> - fprintf(stderr, "The QEMU_AIO_POLL_MAX_NS environment variable has "
> >>> - "been replaced with -object iothread,poll-max-ns=NUM\n");
> >>> + error_report("The QEMU_AIO_POLL_MAX_NS environment variable has "
> >>> + "been replaced with -object iothread,poll-max-ns=NUM");
> >>> exit(1);
> >>> }
> >>
> >> The comment in front of this code block indicates that this should
> >> rather be removed completely. Stefan, do you agree?
> >
> > I assume you asked the other Stefan, but I think he'll agree as I do,
>
> Right, the code has been introduced by this commit:
>
> commit 4a1cba3802554a3b077d436002519ff1fb0c18bf
> Author: Stefan Hajnoczi <stefanha@redhat.com>
> Date: Thu Dec 1 19:26:42 2016 +0000
>
> aio: add polling mode to AioContext
>
> and apparently the environment variable has never been used in the
> committed code base, so removing this code block sounds like the right
> way to go.
Yes, feel free to remove it.
Initially the RFC patches used the QEMU_AIO_POLL_MAX_NS environment
variable. When I wrote a proper command-line interface for this setting
I left the error to help any of the people testing this optimization
migrate their scripts to the new interface.
...Then I forgot to remove it for the final non-RFC patch which got
merged :).
Stefan
next prev parent reply other threads:[~2017-10-20 10:48 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-19 16:15 [Qemu-devel] [PATCH v3 00/46] Remove some of the fprintf(stderr, "* Alistair Francis
2017-10-19 16:15 ` [Qemu-devel] [PATCH v3 01/46] Replace all occurances of __FUNCTION__ with __func__ Alistair Francis
2017-10-24 16:15 ` Anthony PERARD
2017-10-29 13:16 ` Juan Quintela
2017-11-07 10:12 ` Markus Armbruster
2017-11-07 19:41 ` Eric Blake
2017-11-08 7:52 ` Markus Armbruster
2017-11-08 14:51 ` Alistair Francis
2017-11-08 15:00 ` Eric Blake
2017-11-08 15:26 ` Alistair Francis
2017-10-19 16:15 ` [Qemu-devel] [PATCH v3 02/46] Fixes after renaming __FUNCTION__ to __func__ Alistair Francis
2017-10-19 16:15 ` [Qemu-devel] [PATCH v3 03/46] audio: Replace AUDIO_FUNC with __func__ Alistair Francis
2017-10-19 16:15 ` [Qemu-devel] [PATCH v3 04/46] tests: Replace fprintf(stderr, "*\n" with error_report() Alistair Francis
2017-10-19 16:15 ` [Qemu-devel] [PATCH v3 05/46] hw/arm: " Alistair Francis
2017-10-19 16:15 ` [Qemu-devel] [PATCH v3 06/46] hw/block: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 07/46] hw/bt: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 08/46] hw/char: " Alistair Francis
2017-10-20 3:30 ` Philippe Mathieu-Daudé
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 09/46] hw/core: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 10/46] hw/cris: " Alistair Francis
2017-10-20 3:19 ` Philippe Mathieu-Daudé
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 11/46] hw/display: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 12/46] hw/dma: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 13/46] hw/gpio: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 14/46] hw/i2c: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 16/46] hw/ide: " Alistair Francis
2017-10-24 15:56 ` Philippe Mathieu-Daudé
2017-11-01 21:10 ` [Qemu-devel] [Qemu-block] " John Snow
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 17/46] hw/input: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 18/46] hw/intc: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 19/46] hw/ipmi: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 20/46] hw/isa: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 21/46] hw/lm32: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 22/46] hw/microblaze: " Alistair Francis
2017-10-19 16:16 ` [Qemu-devel] [PATCH v3 23/46] hw/mips: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 24/46] hw/misc: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 25/46] hw/moxie: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 26/46] hw/net: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 27/46] hw/nios2: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 28/46] hw/nvram: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 29/46] hw/openrisc: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 30/46] hw/pci*: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 31/46] hw/ppc: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 32/46] hw/s390x: " Alistair Francis
2017-10-19 16:58 ` Thomas Huth
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 33/46] hw/scsi: " Alistair Francis
2017-10-19 23:50 ` David Gibson
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 34/46] hw/sd: " Alistair Francis
2017-10-24 16:02 ` Philippe Mathieu-Daudé
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 35/46] hw/sh4: " Alistair Francis
2017-10-19 16:17 ` [Qemu-devel] [PATCH v3 36/46] hw/sparc*: " Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 37/46] hw/ssi: " Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 38/46] hw/timer: " Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 39/46] hw/usb: " Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 40/46] hw/watchdog: " Alistair Francis
2017-10-24 16:12 ` Philippe Mathieu-Daudé
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 41/46] hw/xen*: " Alistair Francis
2017-10-24 14:26 ` Anthony PERARD
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 42/46] util: " Alistair Francis
2017-10-19 17:53 ` Thomas Huth
2017-10-19 19:47 ` Stefan Weil
2017-10-20 6:27 ` Thomas Huth
2017-10-20 10:47 ` Stefan Hajnoczi [this message]
2017-10-20 16:38 ` Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 43/46] ui: " Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 44/46] tcg: " Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 45/46] target: Use qemu_log() instead of fprintf(stderr, ...) Alistair Francis
2017-10-19 16:18 ` [Qemu-devel] [PATCH v3 46/46] target: Replace fprintf(stderr, "*\n" with error_report() Alistair Francis
2017-10-20 3:25 ` Philippe Mathieu-Daudé
2017-10-20 7:34 ` Thomas Huth
2017-10-23 7:41 ` Alistair Francis
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=20171020104739.GC27352@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=alistair.francis@xilinx.com \
--cc=alistair23@gmail.com \
--cc=armbru@redhat.com \
--cc=f4bug@amsat.org \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
--cc=thuth@redhat.com \
/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).