As long as "two" qualifies as "assorted". v1->v2: - abandon original "idea", allocate sufficient memory for OFW device path formatting [Markus] - all bus formatters should rely on glib for dynamic allocation [Peter]
Tested with an OVMF debug patch that grabs and logs the "bootorder" fw_cfg file: /pci@i0cf8/ide@1,1/drive@0/disk@0 /pci@i0cf8/ide@1,1/drive@1/disk@0 /pci@i0cf8/isa@1/fdc@03f0/floppy@0 /pci@i0cf8/ethernet@3/ethernet-phy@0 Laszlo Ersek (2): accomodate OpenFirmware device paths in sufficient storage get_fw_dev_path() impls should allocate memory with glib functions hw/ide/qdev.c | 2 +- hw/isa-bus.c | 2 +- hw/pci.c | 2 +- hw/qdev.c | 54 +++++++++++++++++++++++++++++++++++++++++++----------- hw/scsi-bus.c | 2 +- hw/sysbus.c | 2 +- 6 files changed, 48 insertions(+), 16 deletions(-)