diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-05-29 10:31:36 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-05-29 10:31:36 +0100 |
commit | d7a33b31e2be9aaaa4131cc392cf80571407c1e6 (patch) | |
tree | 48958156d82b8eb22de8d2b5ff79df9686a6437a /tools/libxl/libxl_pci.c | |
parent | 095e1c2da089daf2ca1c7347be287598bcc69fc4 (diff) | |
download | xen-d7a33b31e2be9aaaa4131cc392cf80571407c1e6.tar.gz xen-d7a33b31e2be9aaaa4131cc392cf80571407c1e6.tar.bz2 xen-d7a33b31e2be9aaaa4131cc392cf80571407c1e6.zip |
libxl: When checking BDF of existing slots, function should be decimal, not hex
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Spotted-by: Konrad Wilk <konrad.wilk@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_pci.c')
-rw-r--r-- | tools/libxl/libxl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index e9809950e6..3b82e9990e 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -480,7 +480,7 @@ static int pciback_dev_has_slot(libxl__gc *gc, libxl_device_pci *pcidev) return ERROR_FAIL; } - while(fscanf(f, "%x:%x:%x.%x\n", &dom, &bus, &dev, &func)==4) { + while(fscanf(f, "%x:%x:%x.%d\n", &dom, &bus, &dev, &func)==4) { if(dom == pcidev->domain && bus == pcidev->bus && dev == pcidev->dev |