summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/printf.c')
-rw-r--r--newlib/libc/machine/spu/printf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/newlib/libc/machine/spu/printf.c b/newlib/libc/machine/spu/printf.c
index 695bb5a15..5783b80e6 100644
--- a/newlib/libc/machine/spu/printf.c
+++ b/newlib/libc/machine/spu/printf.c
@@ -11,7 +11,7 @@
typedef struct
{
- char* fmt;
+ _CONST char* fmt;
unsigned int pad0[ 3 ];
va_list ap;
} c99_printf_t;
@@ -33,6 +33,9 @@ printf (fmt, va_alist)
{
int* ret;
c99_printf_t args;
+
+ CHECK_STD_INIT(_REENT);
+
ret = (int*) &args;
args.fmt = fmt;