Index: openbios-devel/include/ppc/types.h =================================================================== --- openbios-devel.orig/include/ppc/types.h +++ openbios-devel/include/ppc/types.h @@ -35,6 +35,11 @@ typedef uint32_t ucell; typedef int64_t dcell; typedef uint64_t ducell;
+#define FMT_cell "%d" +#define FMT_ucell "%u" +#define FMT_ucellx "%08x" +#define FMT_ucellX "%08X" + #define bitspercell (sizeof(cell)<<3) #define bitsperdcell (sizeof(dcell)<<3)
Index: openbios-devel/include/sparc64/types.h =================================================================== --- openbios-devel.orig/include/sparc64/types.h +++ openbios-devel/include/sparc64/types.h @@ -32,9 +32,10 @@ typedef long long int64_t; typedef int64_t cell; typedef uint64_t ucell;
-#define FMT_cell "%lld" +#define FMT_cell "%lld" #define FMT_ucell "%llu" #define FMT_ucellx "%016llx" +#define FMT_ucellX "%016llX"
#ifdef NEED_FAKE_INT128_T typedef struct {