From 973adc2772a3c84337ab8d8a871a2ddbfd6ee496 Mon Sep 17 00:00:00 2001 From: Max Lingua Date: Sun, 12 Jul 2009 22:00:47 +0000 Subject: On PS2 use "fprintf" (as in 0.13.x ) to print error messages to stderr, rather than "fputs", which is buggy in the PS2 implementation. svn-id: r42429 --- common/util.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/util.cpp b/common/util.cpp index e99bbeb12d..170e972c4f 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -477,7 +477,11 @@ void NORETURN error(const char *s, ...) { // Print the error message to stderr +#ifndef __PLAYSTATION2__ fputs(buf_output, stderr); +#else + fprintf(stderr, "%s\n", buf_output); +#endif // Unless this error -originated- within the debugger itself, we // now invoke the debugger, if available / supported. -- cgit v1.2.3