mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
android: fix liblog API changes
android logging macros changed their name in JellyBean. Signed-off-by: Bruce E. Robertson <bruce.e.robertson@intel.com> Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
4d02b018f4
commit
29d394b9ba
1 changed files with 14 additions and 3 deletions
|
|
@ -660,18 +660,29 @@ droid_open_device(void)
|
|||
return (fd >= 0) ? dup(fd) : -1;
|
||||
}
|
||||
|
||||
/* support versions < JellyBean */
|
||||
#ifndef ALOGW
|
||||
#define ALOGW LOGW
|
||||
#endif
|
||||
#ifndef ALOGD
|
||||
#define ALOGD LOGD
|
||||
#endif
|
||||
#ifndef ALOGI
|
||||
#define ALOGI LOGI
|
||||
#endif
|
||||
|
||||
static void
|
||||
droid_log(EGLint level, const char *msg)
|
||||
{
|
||||
switch (level) {
|
||||
case _EGL_DEBUG:
|
||||
LOGD("%s", msg);
|
||||
ALOGD("%s", msg);
|
||||
break;
|
||||
case _EGL_INFO:
|
||||
LOGI("%s", msg);
|
||||
ALOGI("%s", msg);
|
||||
break;
|
||||
case _EGL_WARNING:
|
||||
LOGW("%s", msg);
|
||||
ALOGW("%s", msg);
|
||||
break;
|
||||
case _EGL_FATAL:
|
||||
LOG_FATAL("%s", msg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue