From: Isaku Yamahata Date: Thu, 27 Jan 2011 03:49:04 +0000 (+0900) Subject: pci: typo in pcibus_get_dev_path() X-Git-Tag: v0.14.0-rc0~22^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c90051801725d5bd12979a585a8da5f1eecd497;p=thirdparty%2Fqemu.git 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 Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/pci.c b/hw/pci.c index 712280aeb94..d5bbba975b0 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); }