qdev-monitor: Convert qbus_find() to Error
commitd282842999b914c38c8be4659012aa619c22af8b
authorMarkus Armbruster <armbru@redhat.com>
Wed, 11 Mar 2015 18:16:04 +0000 (11 19:16 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 22 Jun 2015 16:20:39 +0000 (22 18:20 +0200)
treec971d54abcba1d199303b5b82404409a300aa611
parented238ba2a0239368dd0cec9bfaf3300a5bd303ce
qdev-monitor: Convert qbus_find() to Error

As usual, the conversion breaks printing explanatory messages after
the error: actual printing of the error gets delayed, so the
explanations precede rather than follow it.

Pity.  Disable them for now.  See also commit 7216ae3.

While there, eliminate QERR_BUS_NOT_FOUND, and clean up unusual
spelling in the error message.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/qapi/qmp/qerror.h
qdev-monitor.c