OSDN Git Service

qdev: improve property error reporting.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Dec 2009 13:22:11 +0000 (14:22 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 18 Dec 2009 17:26:30 +0000 (11:26 -0600)
commit9ef5c4bf8132eb72db2dd83fce3fa0005a6dd13f
tree441add29c9c683f8637875f1dcbd40fae5d278c9
parent69fd02eea61e6d9e7cd7831ef26522a5ac9e146c
qdev: improve property error reporting.

Add a error message in case we fail to parse a qdev property.

Also make qemu not abort() in case setting a global property can't be
set.  This used to be a clear programming error.  The introduction of
the -global switch changed that though, so better exit instead (after
printing the new error message).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-properties.c