From: George Dunlap Date: Tue, 29 May 2012 09:31:36 +0000 (+0100) Subject: libxl: When checking BDF of existing slots, function should be decimal, not hex X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7e9c18b89839b0befba4c2c30e4f5b952abd98ff;p=people%2Fvhanquez%2Fxen-unstable.git libxl: When checking BDF of existing slots, function should be decimal, not hex Signed-off-by: George Dunlap Spotted-by: Konrad Wilk Acked-by: Konrad Rzeszutek Wilk Committed-by: Ian Campbell --- 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