ia64/xen-unstable

changeset 13241:886f7312257e

[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@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Tue Jan 02 14:19:47 2007 +0000 (2007-01-02)
parents 9c028b3cdb55
children f60c305186b4
files linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Tue Jan 02 14:14:15 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Tue Jan 02 14:19:47 2007 +0000
     1.3 @@ -306,7 +306,7 @@ static void connect(struct blkfront_info
     1.4  	DPRINTK("blkfront.c:connect:%s.\n", info->xbdev->otherend);
     1.5  
     1.6  	err = xenbus_gather(XBT_NIL, info->xbdev->otherend,
     1.7 -			    "sectors", "%llu", &sectors,
     1.8 +			    "sectors", "%Lu", &sectors,
     1.9  			    "info", "%u", &binfo,
    1.10  			    "sector-size", "%lu", &sector_size,
    1.11  			    NULL);