From 48aca0b2df62888f22cc5a2fcfc0909cd2014ba5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 5 Sep 2013 06:43:34 -0700 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/SDL_log.c b/src/SDL_log.c index e47249021..802a6f25c 100644 --- a/src/SDL_log.c +++ b/src/SDL_log.c @@ -84,6 +84,7 @@ static const char *SDL_category_prefixes[SDL_LOG_CATEGORY_RESERVED1] = { }; static int SDL_android_priority[SDL_NUM_LOG_PRIORITIES] = { + ANDROID_LOG_UNKNOWN, ANDROID_LOG_VERBOSE, ANDROID_LOG_DEBUG, ANDROID_LOG_INFO,