mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
[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:
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", §ors,
|
||||
"sectors", "%Lu", §ors,
|
||||
"info", "%u", &binfo,
|
||||
"sector-size", "%lu", §or_size,
|
||||
NULL);
|
||||
|
||||