From 2ca512e5923bb2d66a13211af9401c53735052b2 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 25 Jun 2012 13:06:03 +0200 Subject: print out resource_size_t correctly resource_size_t can be 32bit or 64bit depending on the architecture. Add a define for it to be able to printf a resource_size_t correctly Signed-off-by: Sascha Hauer --- include/linux/ioport.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/linux/ioport.h b/include/linux/ioport.h index c837b53491..3f95dddf4e 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h @@ -25,6 +25,12 @@ struct resource { struct list_head sibling; }; +#ifdef CONFIG_PHYS_ADDR_T_64BIT +#define PRINTF_CONVERSION_RESOURCE "0x%016llx" +#else +#define PRINTF_CONVERSION_RESOURCE "0x%08x" +#endif + /* * IO resources have these defined flags. */ -- cgit v1.2.3