[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>
This commit is contained in:
Ian Campbell committed 2007-01-02 14:19:47 +00:00
1 parent f46cd72592
commit 3c4b2d4c00
1 file changed
+1 -1
@@ -306,7 +306,7 @@ static void connect(struct blkfront_info *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,
NULL);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.