mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
egl: fix android logger compilation
1ce5853broken 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 <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
6d2e912cdb
commit
0aa578714e
1 changed files with 5 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue