Skip to content

Commit

Permalink
Fixed bug 2084 - SDL_log xxx on Android outputs to Logcat with incorr…
Browse files Browse the repository at this point in the history
…ect 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.
  • Loading branch information
slouken committed Sep 5, 2013
1 parent b63d11c commit 48aca0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SDL_log.c
Expand Up @@ -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,
Expand Down

0 comments on commit 48aca0b

Please sign in to comment.