Revision 4c900518 hw/pci.c

b/hw/pci.c
2072 2072
    for (t = d; t; t = t->bus->parent_dev) {
2073 2073
        p -= slot_len;
2074 2074
        s = snprintf(slot, sizeof slot, ":%02x.%x",
2075
                     PCI_SLOT(t->devfn), PCI_FUNC(d->devfn));
2075
                     PCI_SLOT(t->devfn), PCI_FUNC(t->devfn));
2076 2076
        assert(s == slot_len);
2077 2077
        memcpy(p, slot, slot_len);
2078 2078
    }

Also available in: Unified diff