summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/vprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/vprintf.c')
-rw-r--r--newlib/libc/machine/spu/vprintf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/newlib/libc/machine/spu/vprintf.c b/newlib/libc/machine/spu/vprintf.c
index eca015839..32b86d8f2 100644
--- a/newlib/libc/machine/spu/vprintf.c
+++ b/newlib/libc/machine/spu/vprintf.c
@@ -27,19 +27,14 @@ _DEFUN (vprintf, (fmt, ap),
_CONST char *fmt _AND
va_list ap)
{
- int* ret;
c99_vprintf_t args;
CHECK_STD_INIT(_REENT);
- ret = (int*) &args;
-
args.fmt = fmt;
va_copy(args.ap,ap);
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
}
#endif /* ! _REENT_ONLY */