From: Michael Tokarev <mjt@tls.msk.ru>
To: Markus Armbruster <armbru@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Le Tan <tamlokveer@gmail.com>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PULL 21/23] bsd-user: replace fprintf(stderr, ...) with error_report()
Date: Mon, 02 Jun 2014 17:16:07 +0400 [thread overview]
Message-ID: <538C7917.5010703@msgid.tls.msk.ru> (raw)
In-Reply-To: <87mwdv8nle.fsf@blackfin.pond.sub.org>
02.06.2014 17:09, Markus Armbruster wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
[]
>> because none of these bsd-user files include a header which
>> gives a prototype for error_report. Also, these are just
>> straightforward reporting of command line errors, and I
>> think that, like the linux-user code, we should handle
>> these in the obvious way by printing to stderr. There's no
>> need to drag in the error-handling framework for this,
>> especially since user-mode doesn't have the "maybe we
>> need to send this to the monitor" issues system emulation
>> does.
>
> Not much of a "framework", really.
>
> Even in straightforward command line cases, error_report() adds value,
> namely a uniform error message format that includes the program name.
> Its ability to point to the offending option is useful when the command
> line gets long (and ours are prone to get really, really long).
Please note the talk is about bsd-USER, not a SYSTEM emulation.
And for -user. the command line is usually just the opposite - very
short, consisting of the original command line with qemu-foo prepended.
When I encountered this phenomenon (lack of any #includes declaring
error_report()) I thought that maybe an alternative channel for error
reporting might be useful there, like QEMU_LOG=$TMPDIR/foo qemu-foo ...,
so that the output produced by qemu can be separated from the output
produced by the program it runs, but just as Peter pointed out, we're
far from there yet, and indeed, we should start elsewhere.
Thanks,
/mjt
WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: Markus Armbruster <armbru@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Le Tan <tamlokveer@gmail.com>
Subject: Re: [Qemu-devel] [PULL 21/23] bsd-user: replace fprintf(stderr, ...) with error_report()
Date: Mon, 02 Jun 2014 17:16:07 +0400 [thread overview]
Message-ID: <538C7917.5010703@msgid.tls.msk.ru> (raw)
In-Reply-To: <87mwdv8nle.fsf@blackfin.pond.sub.org>
02.06.2014 17:09, Markus Armbruster wrote:
> Peter Maydell <peter.maydell@linaro.org> writes:
[]
>> because none of these bsd-user files include a header which
>> gives a prototype for error_report. Also, these are just
>> straightforward reporting of command line errors, and I
>> think that, like the linux-user code, we should handle
>> these in the obvious way by printing to stderr. There's no
>> need to drag in the error-handling framework for this,
>> especially since user-mode doesn't have the "maybe we
>> need to send this to the monitor" issues system emulation
>> does.
>
> Not much of a "framework", really.
>
> Even in straightforward command line cases, error_report() adds value,
> namely a uniform error message format that includes the program name.
> Its ability to point to the offending option is useful when the command
> line gets long (and ours are prone to get really, really long).
Please note the talk is about bsd-USER, not a SYSTEM emulation.
And for -user. the command line is usually just the opposite - very
short, consisting of the original command line with qemu-foo prepended.
When I encountered this phenomenon (lack of any #includes declaring
error_report()) I thought that maybe an alternative channel for error
reporting might be useful there, like QEMU_LOG=$TMPDIR/foo qemu-foo ...,
so that the output produced by qemu can be separated from the output
produced by the program it runs, but just as Peter pointed out, we're
far from there yet, and indeed, we should start elsewhere.
Thanks,
/mjt
next prev parent reply other threads:[~2014-06-02 13:16 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 7:19 [Qemu-trivial] [PULL 00/23] Trivial patches for 2014-05-26 Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 01/23] libcacard: g_malloc cleanups Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 02/23] iohandler.c: Properly initialize sigaction struct Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 03/23] nbd: Close socket on negotiation failure Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 04/23] nbd: Miscellaneous typo fixes Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 05/23] configure: Automatically select GTK+ 3.0 if GTK+ 2.0 is unavailable Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 06/23] bswap.h: Rename ldl_p, stl_p, etc to ldl_he_p, stl_he_p, etc Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 07/23] jazz_led: Add missing break in switch case Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 08/23] pci: move dereferencing of root only after verifying valid root pointer Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 09/23] arch_init: replace fprintf(stderr, ...) with error_report() Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 10/23] dma-helpers: avoid calling dma_bdrv_unmap() twice Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:19 ` [Qemu-trivial] [PULL 11/23] configure: Put tempfiles in a subdir of the build directory Michael Tokarev
2014-05-26 7:19 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 12/23] vl: fix 'name' option to work with -readconfig Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 13/23] libcacard/vscclient: Bury some dead code Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 14/23] libcacard: Plug memory leaks around vreader_get_reader_list() Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 15/23] libcacard/vreader: Drop broken recovery from failed assertion Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 16/23] libcacard/vreader: Tighten assertion to clarify intent Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 17/23] libcacard: Convert two leftover realloc() to GLib Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 18/23] libcacard/vcard_emul_nss: Drop a redundant conditional Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 19/23] libcacard: fix wrong array expansion logic Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 20/23] audio: replace fprintf(stderr, ...) with error_report() in audio Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 21/23] bsd-user: replace fprintf(stderr, ...) with error_report() Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-31 22:39 ` [Qemu-trivial] " Peter Maydell
2014-06-02 12:08 ` Michael Tokarev
2014-06-02 12:08 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-06-02 12:34 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2014-06-02 12:34 ` [Qemu-devel] [Qemu-trivial] " Peter Maydell
2014-06-02 13:09 ` [Qemu-trivial] [Qemu-devel] " Markus Armbruster
2014-06-02 13:09 ` Markus Armbruster
2014-06-02 13:16 ` Michael Tokarev [this message]
2014-06-02 13:16 ` Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 22/23] net: cadence_gem: Fix top comment Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-26 7:20 ` [Qemu-trivial] [PULL 23/23] libcacard: remove useless initializers Michael Tokarev
2014-05-26 7:20 ` [Qemu-devel] " Michael Tokarev
2014-05-27 22:30 ` [Qemu-trivial] [Qemu-devel] [PULL 00/23] Trivial patches for 2014-05-26 Peter Maydell
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=538C7917.5010703@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=armbru@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=tamlokveer@gmail.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 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.