This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [PV-on-HVM] blkfront: use %Lu instead of

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 02 Jan 2007 08:10:09 -0800
Delivery-date: Tue, 02 Jan 2007 08:10:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Date 1167747587 0
# Node ID 886f7312257ee398e6169f608c23d959840adc65
# Parent  9c028b3cdb55bd0560d5894f342a3fb1e20561a5
[PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather.

The 'll' length modifier is not available with scanf (and therefore
xenbus_gather) on older kernel versions so use 'L' which is available at
least back to 2.6.5.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
 linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 9c028b3cdb55 -r 886f7312257e 
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Tue Jan 02 
14:14:15 2007 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Tue Jan 02 
14:19:47 2007 +0000
@@ -306,7 +306,7 @@ static void connect(struct blkfront_info
        DPRINTK("blkfront.c:connect:%s.\n", info->xbdev->otherend);
        err = xenbus_gather(XBT_NIL, info->xbdev->otherend,
-                           "sectors", "%llu", &sectors,
+                           "sectors", "%Lu", &sectors,
                            "info", "%u", &binfo,
                            "sector-size", "%lu", &sector_size,

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather., Xen patchbot-unstable <=