]> git.proxmox.com Git - qemu.git/commit - qerror.h
qdev: print error message before aborting
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Feb 2012 09:19:53 +0000 (10:19 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 14 Feb 2012 18:57:33 +0000 (18:57 +0000)
commit59f971d451fbabee3194bb565f40846398ee6e6f
treed775a7dc5f9551b1b8d0e212d11d7091732807b5
parent0a54a0ce3e7659d7804274fcb058154d52fb8d82
qdev: print error message before aborting

qdev_prop_set_* functions are always called by machine init functions
that should know what they're doing, so they abort on error.  Still,
an assert(!errp) does not aid debugging.  Print an error before aborting.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/qdev-properties.c
qerror.c
qerror.h