From a4bc0a6fa3a0389e2940b780fabc8a595a6b4a9c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 22 Oct 2013 18:15:22 +0200 Subject: [PATCH] GLES2N64: Logging on the Pandora works now --- source/gles2n64/src/Common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/gles2n64/src/Common.h b/source/gles2n64/src/Common.h index ac508cd..89c9dd1 100755 --- a/source/gles2n64/src/Common.h +++ b/source/gles2n64/src/Common.h @@ -21,12 +21,13 @@ #if LOG_LEVEL>0 -#include - #define LOG(A, ...) \ if (A <= LOG_LEVEL) \ { \ - __android_log_print(ANDROID_LOG_DEBUG, "gles2n64", __VA_ARGS__); \ + if (A == LOG_WARNING) printf("(WW) "); \ + if (A == LOG_ERROR) printf("(EE) "); \ + printf(__VA_ARGS__); \ + fflush(stdout); \ } #else -- 2.39.2