On Tue, 28 Oct 2025 at 10:34, Markus Armbruster <[email protected]> wrote: > The problem: PCI addresses are integers in C and in QOM. Makes sense. > But "info qtree" has always displayed PCI addresses in the form DEV.FN, > which also makes sense. > > The pre-QOM solution: qdev property method .get() returns the integer, > .print() formats it for humans. "info qtree" used the latter. > > Aside: "format for humans" may well be more widely applicable, if we > care.
Relatedly, there are various places where we define a "string" QOM property and then format that into an underlying enum (though it is also nice not to have the enum values / representation not be public facing ABI)... -- PMM
