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-3.0.4-testing] [PV-on-HVM] blkfront: use %Lu instea

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.4-testing] [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather.
From: "Xen patchbot-3.0.4-testing" <patchbot-3.0.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Jan 2007 14:15:50 -0800
Delivery-date: Wed, 03 Jan 2007 14:49:24 -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 b5f32f507ad1228cfdf07580840938c2a493bbcb
# Parent  6e84df1b95f36009190aaba8c2358e4c1fec08a3
[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>

Based on xen-unstable changeset 13205:886f7312257ee398e6169f608c23d959840adc65
 linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 6e84df1b95f3 -r b5f32f507ad1 
--- 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
@@ -310,7 +310,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-3.0.4-testing] [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather., Xen patchbot-3.0.4-testing <=