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-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8411 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d7a33b31e2be9aaaa4131cc392cf80571407c1e6;p=xen.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