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

[Xen-changelog] [xen-unstable] libxl: When checking BDF of existing slots, function should be decimal, not hex


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 29 May 2012 16:44:07 +0000
  • Delivery-date: Tue, 29 May 2012 16:44:20 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User George Dunlap <george.dunlap@xxxxxxxxxxxxx>
# Date 1338283896 -3600
# Node ID 859d390c21d1ac5eb0c43f57cb15d62b307d6d21
# Parent  53e0571f94e4bcc45270dcbd444c7c91166cef6d
libxl: When checking BDF of existing slots, function should be decimal, not hex

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Spotted-by: Konrad Wilk <konrad.wilk@xxxxxxxxxx>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r 53e0571f94e4 -r 859d390c21d1 tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c   Fri May 25 08:21:25 2012 +0100
+++ b/tools/libxl/libxl_pci.c   Tue May 29 10:31:36 2012 +0100
@@ -480,7 +480,7 @@ static int pciback_dev_has_slot(libxl__g
         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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.