Re: [Qemu-devel] [PATCH 04/10] qom: add get_id

2012-05-25 Thread malc
On Fri, 25 May 2012, Andreas F?rber wrote: > Am 23.05.2012 17:44, schrieb Paolo Bonzini: > > Some classes may present objects differently in errors, for example if they > > are not part of the composition tree or if they are not assigned an id by > > the user. Let them do this with a get_id metho

Re: [Qemu-devel] [PATCH 04/10] qom: add get_id

2012-05-25 Thread Andreas Färber
Am 23.05.2012 17:44, schrieb Paolo Bonzini: > Some classes may present objects differently in errors, for example if they > are not part of the composition tree or if they are not assigned an id by > the user. Let them do this with a get_id method on Object, and use the > method consistently where

[Qemu-devel] [PATCH 04/10] qom: add get_id

2012-05-23 Thread Paolo Bonzini
Some classes may present objects differently in errors, for example if they are not part of the composition tree or if they are not assigned an id by the user. Let them do this with a get_id method on Object, and use the method consistently where a %(device) appears in the error. Signed-off-by: P