diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-10-17 10:39:10 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 21:17:51 +0200 |
commit | 37ea0fcb6a3f3318bf45888e624722a2945cec04 (patch) | |
tree | b057c720efeff8ceb7d89f71031cef54c0db5fcc /drivers/xen/sys-hypervisor.c | |
parent | xen: sysfs: include err.h for PTR_ERR etc (diff) | |
download | linux-37ea0fcb6a3f3318bf45888e624722a2945cec04.tar.xz linux-37ea0fcb6a3f3318bf45888e624722a2945cec04.zip |
xen: sysfs: fix build warning.
Define PRI macros for xen_ulong_t and xen_pfn_t and use to fix:
drivers/xen/sys-hypervisor.c:288:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'xen_ulong_t' [-Wformat]
Ideally this would use PRIx64 on ARM but these (or equivalent) don't
seem to be available in the kernel.
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/xen/sys-hypervisor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c index 66a0a1475acf..96453f8a85c5 100644 --- a/drivers/xen/sys-hypervisor.c +++ b/drivers/xen/sys-hypervisor.c @@ -285,7 +285,8 @@ static ssize_t virtual_start_show(struct hyp_sysfs_attr *attr, char *buffer) ret = HYPERVISOR_xen_version(XENVER_platform_parameters, parms); if (!ret) - ret = sprintf(buffer, "%lx\n", parms->virt_start); + ret = sprintf(buffer, "%"PRI_xen_ulong"\n", + parms->virt_start); kfree(parms); } |