Fixed bug 2084 - SDL_log xxx on Android outputs to Logcat with incorrect priority.
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Sep 2013 06:43:34 -0700
changeset 7727627ce8499c81
parent 7725 c61ab95113fe
child 7728 800313a3533d
Fixed bug 2084 - SDL_log xxx on Android outputs to Logcat with incorrect priority.

Pallav Nawani

This effects all SDL_Logxxx functions. On android, the debug output has a priority that is 1 higher than intended, ie, if you try SDL_LogInfo, the log has the priority of Warn instead.
src/SDL_log.c
     1.1 --- a/src/SDL_log.c	Wed Sep 04 23:40:11 2013 -0400
     1.2 +++ b/src/SDL_log.c	Thu Sep 05 06:43:34 2013 -0700
     1.3 @@ -84,6 +84,7 @@
     1.4  };
     1.5  
     1.6  static int SDL_android_priority[SDL_NUM_LOG_PRIORITIES] = {
     1.7 +    ANDROID_LOG_UNKNOWN,
     1.8      ANDROID_LOG_VERBOSE,
     1.9      ANDROID_LOG_DEBUG,
    1.10      ANDROID_LOG_INFO,