]> git.proxmox.com Git - qemu.git/commit - hw/core/qdev-properties-system.c
hw/qdev-properties.c: Improve diagnostic for setting property after realize
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 25 Mar 2013 13:40:44 +0000 (13:40 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Mar 2013 14:26:49 +0000 (09:26 -0500)
commitb000dfbd42e8aac9af66ae0ed787ef1021bea29f
tree83208f9f96b6b7b09274173a9b94732112955bc4
parentc19f806e01ba5c4a4d4fac80b76841512ed4a11e
hw/qdev-properties.c: Improve diagnostic for setting property after realize

Now we have error_setg() we can improve the error message emitted if
you attempt to set a property of a device after the device is realized
(the previous message was "permission denied" which was not very
informative).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1364218844-7509-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-addr.c
hw/qdev-properties-system.c
hw/qdev-properties.c
hw/qdev-properties.h
hw/qdev.c