aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2011-01-27 12:49:04 +0900
committerMichael S. Tsirkin <mst@redhat.com>2011-01-27 06:55:04 +0200
commit4c90051801725d5bd12979a585a8da5f1eecd497 (patch)
treedd0efe82b2224b5189494e24e398c4f202ae8184 /hw
parentbb34007e86aa2a7902ee60e0f6fa2f0e4cccbffe (diff)
downloadqemu-4c90051801725d5bd12979a585a8da5f1eecd497.zip
qemu-4c90051801725d5bd12979a585a8da5f1eecd497.tar.gz
qemu-4c90051801725d5bd12979a585a8da5f1eecd497.tar.bz2
pci: typo in pcibus_get_dev_path()
This patch fixes typo in pcibus_get_dev_path(). Without this patch, the result of pcibus_get_dev_path() isn't unique. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 712280a..d5bbba9 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -2072,7 +2072,7 @@ static char *pcibus_get_dev_path(DeviceState *dev)
for (t = d; t; t = t->bus->parent_dev) {
p -= slot_len;
s = snprintf(slot, sizeof slot, ":%02x.%x",
- PCI_SLOT(t->devfn), PCI_FUNC(d->devfn));
+ PCI_SLOT(t->devfn), PCI_FUNC(t->devfn));
assert(s == slot_len);
memcpy(p, slot, slot_len);
}