summaryrefslogtreecommitdiffstats
path: root/include/linux/ioport.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-06-25 19:19:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-25 19:19:52 +0200
commitfd4c51aa28acfd61e1802cb5ab1197d808e7da82 (patch)
tree13ea69c5a85b1810e30632dcaa27f78f2317b7da /include/linux/ioport.h
parent8ee6700a4c39fe7031ef977aa4e0c208366e13dc (diff)
parent2ca512e5923bb2d66a13211af9401c53735052b2 (diff)
downloadbarebox-fd4c51aa28acfd61e1802cb5ab1197d808e7da82.tar.gz
barebox-fd4c51aa28acfd61e1802cb5ab1197d808e7da82.tar.xz
Merge branch 'pu/sandbox-fixes'
Diffstat (limited to 'include/linux/ioport.h')
-rw-r--r--include/linux/ioport.h6
1 files changed, 6 insertions, 0 deletions
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.
*/