]> git.ipfire.org Git - thirdparty/qemu.git/commit
char: Make -chardev help print to stdout
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Apr 2019 19:06:39 +0000 (21:06 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Apr 2019 20:18:59 +0000 (22:18 +0200)
commitef2fd6f1d1e5333eacaebc8466ed5dbed0d55b8b
tree1b660e1723faf8a5e246257f31e1efc3b10f0c2b
parentcdcd43612032aa91aaa747aacc129a5c781ba447
char: Make -chardev help print to stdout

Command line help explicitly requested by the user should be printed
to stdout, not stderr.  We do elsewhere.  Adjust -chardev to match:
use qemu_printf() instead of error_printf().  Plain printf() would be
wrong because we need to print to the current monitor for "chardev-add
help".

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