From: Alistair Francis <alistair.francis@xilinx.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Alistair Francis" <alistair.francis@xilinx.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Marc-André Lureau" <marcandre.lureau@gmail.com>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
"Gerd Hoffmann" <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v1 1/1] char-socket: Don't report TCP socket waiting as an error
Date: Tue, 6 Jun 2017 16:55:38 -0700 [thread overview]
Message-ID: <CAKmqyKM=e4zDG-jv-MdHQH3pqtLzBSnq7F-YWeB7S+bw91udVg@mail.gmail.com> (raw)
In-Reply-To: <270686d0-1ca8-965f-a14a-397f45616deb@redhat.com>
On Tue, Jun 6, 2017 at 3:14 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 06/06/2017 18:30, Alistair Francis wrote:
>>>
>>> This is somehow confusing. I don't think it is worth having another
>>> qemu_log_stderr() function rather than using error_report() but this very
>>> call might deserve a comment explaining this unusual use. What do you think?
>>
>> The problem with stderr is that this isn't an error. Some uses of QEMU
>> (inside Eclipse for example) flag everything printed on stderr as red
>> which confuses users that they are seeing an error when they really
>> aren't.
>
> But they are wrong. Would it work for you to work around it, by making
> QEMU use a client (connect) rather than a server (listen) socket?
No, we use QEMU as both so we will always have this issue.
>
>> Also all the uses of this message that I have seen (there are probably
>> others though) stops QEMU until the connection is made, which means it
>> doesn't matter if it is mixed up in console output.
>
> It may not mix up, but it would break programs expecting only console
> output to be on stdout.
Is that something we guarantee that stdout will only ever be program output?
Thanks,
Alistair
>
>> I just think that this message to most users isn't helpful and they
>> probably don't even read it, so printing to stderr seems like a bit
>> much.
>
> I would compare it with dd's output. It goes to stderr even though it's
> not an error.
>
> Paolo
>
next prev parent reply other threads:[~2017-06-06 23:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-05 18:34 [Qemu-devel] [PATCH v1 1/1] char-socket: Don't report TCP socket waiting as an error Alistair Francis
2017-06-05 20:12 ` Philippe Mathieu-Daudé
2017-06-06 11:58 ` Marc-André Lureau
2017-06-06 13:37 ` Philippe Mathieu-Daudé
2017-06-06 16:30 ` Alistair Francis
2017-06-06 22:14 ` Paolo Bonzini
2017-06-06 23:55 ` Alistair Francis [this message]
2017-06-07 7:19 ` Markus Armbruster
2017-06-07 23:47 ` Alistair Francis
2017-06-08 6:03 ` Markus Armbruster
2017-06-08 16:53 ` Alistair Francis
2017-06-08 17:56 ` Markus Armbruster
2017-06-08 19:57 ` Alistair Francis
2017-06-09 5:16 ` Markus Armbruster
2017-06-27 18:49 ` 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='CAKmqyKM=e4zDG-jv-MdHQH3pqtLzBSnq7F-YWeB7S+bw91udVg@mail.gmail.com' \
--to=alistair.francis@xilinx.com \
--cc=f4bug@amsat.org \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=pbonzini@redhat.com \
--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).