[OpenBIOS] [PATCH 13/13] Fix the FMT_cell and FMT_ucell definitions for SPARC32.

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Fri Dec 31 00:22:41 CET 2010


This is required to enable a build with CONFIG_DEBUG_OFMEM set to true to complete successfully.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>
---
 openbios-devel/include/arch/sparc32/types.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/openbios-devel/include/arch/sparc32/types.h b/openbios-devel/include/arch/sparc32/types.h
index 444d648..b7c5fec 100644
--- a/openbios-devel/include/arch/sparc32/types.h
+++ b/openbios-devel/include/arch/sparc32/types.h
@@ -26,6 +26,8 @@ typedef int             int32_t;
 typedef long long       int64_t;
 typedef long            intptr_t;
 
+#define PRId32 "d"
+#define PRIu32 "u"
 #define PRIx32 "x"
 #define PRIx64 "llx"
 #endif
@@ -46,8 +48,8 @@ typedef uint32_t	ucell;
 typedef long long       dcell;
 typedef unsigned long long ducell;
 
-#define FMT_cell    "%ld"
-#define FMT_ucell   "%lu"
+#define FMT_cell    "%" PRId32
+#define FMT_ucell   "%" PRIu32
 #define FMT_ucellx  "%08x"
 #define FMT_ucellX  "%08X"
 
-- 
1.7.2.3




More information about the OpenBIOS mailing list