blockdev: Make -drive format=help print to stdout
commitcdcd43612032aa91aaa747aacc129a5c781ba447
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Apr 2019 19:06:38 +0000 (17 21:06 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Apr 2019 20:18:59 +0000 (18 22:18 +0200)
tree367022b5804bdebd837d85bdb11878a266960064
parent637de4dba268395f7f2e58e40349468c5e17c060
blockdev: Make -drive format=help print to stdout

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

Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
Cc: qemu-block@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190417190641.26814-13-armbru@redhat.com>
blockdev.c