qdev: Don't hw_error() in qdev_init_nofail()
commitbd6c9a617d969752c9d3663f6ad29ae6d6d6c402
authorMarkus Armbruster <armbru@redhat.com>
Thu, 27 May 2010 19:23:08 +0000 (27 21:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 6 Jul 2010 15:05:49 +0000 (6 17:05 +0200)
treed35ef0356a1e885d332ef7e5b120dec7b6b77379
parentb47b35250fbfa062aedf6ab6e5faab84c4a76f4f
qdev: Don't hw_error() in qdev_init_nofail()

Some of the failures are internal errors, and hw_error() is okay then.
But the common way to fail is bad user input, e.g. -global
isa-fdc.driveA=foo where drive foo has an unsupported rerror value.

exit(1) instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/qdev.c