From ac86215d580769a8d3a66b1be31591ee55127ef3 Mon Sep 17 00:00:00 2001 From: pelya Date: Mon, 7 Feb 2011 10:00:53 +0000 Subject: [PATCH] Updated readme --- project/jni/sdl-1.3/include/SDL_android_printf.h | 12 +++++++----- readme.txt | 4 ++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/project/jni/sdl-1.3/include/SDL_android_printf.h b/project/jni/sdl-1.3/include/SDL_android_printf.h index 0d0fd34a9..d4f304abe 100644 --- a/project/jni/sdl-1.3/include/SDL_android_printf.h +++ b/project/jni/sdl-1.3/include/SDL_android_printf.h @@ -32,16 +32,18 @@ extern int __SDL_android_printf(const char * fmt, ...) __attribute__((format(pri #define __sF __SDL_fake_stdout -/* Generates lot of warning messages in standard headers, enable only for ultra debug mode */ -/* -#define printf __SDL_android_printf -*/ - #ifdef __cplusplus #define cout __SDL_fake_cout #define cerr __SDL_fake_cerr #define clog __SDL_fake_clog } + +/* Generates lot of warning messages in standard headers, enable only for ultra debug mode */ +/* +#include +#define printf __SDL_android_printf +*/ + #endif #endif diff --git a/readme.txt b/readme.txt index 1ec32d4b3..f77c4316b 100644 --- a/readme.txt +++ b/readme.txt @@ -259,6 +259,10 @@ then if it fails enter command You can also debug by adding extensive logs to your app: __android_log_print(ANDROID_LOG_INFO, "My App", "We somehow reached execution point #224"); and then watching "adb logcat" output. +You may wish to uncomment line +#define printf __SDL_android_printf +inside file project/jni/SDL-1.3/include/SDL_android_printf.h - this will make printf() to output to logcat, +however it will trigger lot of warnings in system headers, so it's disabled by default. If your application crashed, you should use following steps: