[OpenBIOS] [commit] r1010 - trunk/openbios-devel/include/arch/sparc32

repository service svn at openbios.org
Sun Jan 2 01:07:36 CET 2011


Author: mcayland
Date: Sun Jan  2 01:07:34 2011
New Revision: 1010
URL: http://tracker.coreboot.org/trac/openbios/changeset/1010

Log:
Fix the FMT_cell and FMT_ucell definitions for SPARC32.

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>
Tested-by: Blue Swirl <blauwirbel at gmail.com>
Reviewed-by: Blue Swirl <blauwirbel at gmail.com>

Modified:
   trunk/openbios-devel/include/arch/sparc32/types.h

Modified: trunk/openbios-devel/include/arch/sparc32/types.h
==============================================================================
--- trunk/openbios-devel/include/arch/sparc32/types.h	Sun Jan  2 01:07:26 2011	(r1009)
+++ trunk/openbios-devel/include/arch/sparc32/types.h	Sun Jan  2 01:07:34 2011	(r1010)
@@ -26,6 +26,8 @@
 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 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"
 



More information about the OpenBIOS mailing list