aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-15 13:43:36 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 17:28:53 -0500
commit8ad125147085e508325e940d19b300e6c7a7502b (patch)
tree1f0f55a7d84405197e29c3ef501b0742e36a63c3 /hw/pci.c
parentd6beee993810b80d7a7f51d05d4f8e08e485b2b2 (diff)
qdev: print device id in "info pci".
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r--hw/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 0d51714257..3b5a94775f 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -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);
}