qdev: remove direct calls to print/parse
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Feb 2012 08:47:13 +0000 (09:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Feb 2012 12:52:41 +0000 (13:52 +0100)
commitd822979bdf80c3ea9752615af15f231b4c4ce547
tree108ee38d18a61cf3550d2f24a70de6b601fd897d
parent1d9c5a12cefcd914d99c32de9aac72966a4788ae
qdev: remove direct calls to print/parse

There's no need to call into ->parse and ->print manually.  The
QOM legacy properties do that for us.

Furthermore, in some cases legacy and static properties have exactly
the same behavior, and we could drop the legacy properties right away.
Add an appropriate fallback to prepare for this.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/qdev-monitor.c
hw/qdev-properties.c
hw/qdev.c