xen: sysfs: fix build warning.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 17 Oct 2012 08:39:10 +0000 (09:39 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Oct 2012 19:17:51 +0000 (15:17 -0400)
commit37ea0fcb6a3f3318bf45888e624722a2945cec04
treeb057c720efeff8ceb7d89f71031cef54c0db5fcc
parent609b0b8c4608d59be261dde748f1ff1eccd748ba
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>
arch/arm/include/asm/xen/interface.h
arch/x86/include/asm/xen/interface.h
drivers/xen/sys-hypervisor.c