char: Use error_printf() to print help and such
commitb1b769b0f3fd672886ade16da07b540acafeb1cc
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:31 +0000 (17 10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (19 14:51 +0200)
tree17bdfb26a5e9f5cdd60c7d7c481f235c69bb02c6
parentc3b8e3e0ed40112367369683da1e3745cf203ac0
char: Use error_printf() to print help and such

Calling error_report() in a function that takes an Error ** argument
is suspicious.  Convert a few that are actually help and such to
error_printf().

Improves output of -chardev help from

    qemu-system-x86_64: -chardev help: Available chardev backend types:
    serial
    ...

to

    Available chardev backend types:
    serial
    ...

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181017082702.5581-8-armbru@redhat.com>
chardev/char-pty.c
chardev/char.c