summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2017-05-12 09:32:15 +0300
committerEmil Velikov <[email protected]>2017-05-15 16:03:51 +0100
commit0aa578714e9d664ab15d2bfb70102505928d8119 (patch)
treec3a44cfc396c80c0ede573ef94c9cefd9dd8d806 /src
parent6d2e912cdb10c36ecc5fc4ab5f1bfb80a7fe211d (diff)
egl: fix android logger compilation
1ce5853 broken compilation since LOG_ERROR is not defined and also macro expansion won't work as planned (expands to 'ANDROID_egl2alog[level]') v2: append 'ANDROID' to egl2alog table and use LOG_PRI (suggested by Chih-Wei Huang) Fixes: 1ce5853 ("egl: simplify the Android logger") Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/egl/main/egllog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c
index 6de2a50b451..64ff474c65c 100644
--- a/src/egl/main/egllog.c
+++ b/src/egl/main/egllog.c
@@ -82,12 +82,12 @@ _eglDefaultLogger(EGLint level, const char *msg)
{
#ifdef HAVE_ANDROID_PLATFORM
static const int egl2alog[] = {
- [_EGL_FATAL] = LOG_ERROR,
- [_EGL_WARNING] = LOG_WARN,
- [_EGL_INFO] = LOG_INFO,
- [_EGL_DEBUG] = LOG_DEBUG,
+ [_EGL_FATAL] = ANDROID_LOG_ERROR,
+ [_EGL_WARNING] = ANDROID_LOG_WARN,
+ [_EGL_INFO] = ANDROID_LOG_INFO,
+ [_EGL_DEBUG] = ANDROID_LOG_DEBUG,
};
- ALOG(egl2alog[level], LOG_TAG, "%s", msg);
+ LOG_PRI(egl2alog[level], LOG_TAG, "%s", msg);
#else
fprintf(stderr, "libEGL %s: %s\n", level_strings[level], msg);
#endif /* HAVE_ANDROID_PLATFORM */