qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] pci: typo in pcibus_get_dev_path()


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH] pci: typo in pcibus_get_dev_path()
Date: Thu, 27 Jan 2011 12:49:04 +0900

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 <address@hidden>
---
 hw/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/pci.c b/hw/pci.c
index d2a0cee..b3d8ba5 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -2191,7 +2191,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);
     }
-- 
1.7.1.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]