qdev: print device id in "info pci".

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Gerd Hoffmann 2009-07-15 13:43:36 +02:00 committed by Anthony Liguori
parent d6beee9938
commit 8ad1251470

View File

@ -738,6 +738,7 @@ static void pci_info_device(PCIDevice *d)
}
}
}
monitor_printf(mon, " id \"%s\"\n", d->qdev.id ? d->qdev.id : "");
if (class == 0x0604 && d->config[0x19] != 0) {
pci_for_each_device(d->config[0x19], pci_info_device);
}