mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
android: change include "cutils/log.h" to "log/log.h" on Android API >=26
There is a compile warning from Android 8 (API version 26) from "include cutils/log.h" warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h"-W#warnings, Change to include "log/log.h" on Android 8 or later major version to avoid this warning Signed-off-by: jenny.q.cao <jenny.q.cao@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
cf3fb42fb5
commit
ff7521c9ba
4 changed files with 16 additions and 0 deletions
|
|
@ -57,7 +57,11 @@ extern uint32_t V3D_DEBUG;
|
|||
|
||||
#ifdef HAVE_ANDROID_PLATFORM
|
||||
#define LOG_TAG "BROADCOM-MESA"
|
||||
#if ANDROID_API_LEVEL >= 26
|
||||
#include <log/log.h>
|
||||
#else
|
||||
#include <cutils/log.h>
|
||||
#endif /* use log/log.h start from android 8 major version */
|
||||
#ifndef ALOGW
|
||||
#define ALOGW LOGW
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -47,7 +47,11 @@
|
|||
|
||||
#ifdef HAVE_ANDROID_PLATFORM
|
||||
#define LOG_TAG "EGL-MAIN"
|
||||
#if ANDROID_API_LEVEL >= 26
|
||||
#include <log/log.h>
|
||||
#else
|
||||
#include <cutils/log.h>
|
||||
#endif /* use log/log.h start from android 8 major version */
|
||||
|
||||
#endif /* HAVE_ANDROID_PLATFORM */
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,11 @@ extern uint64_t INTEL_DEBUG;
|
|||
|
||||
#ifdef HAVE_ANDROID_PLATFORM
|
||||
#define LOG_TAG "INTEL-MESA"
|
||||
#if ANDROID_API_LEVEL >= 26
|
||||
#include <log/log.h>
|
||||
#else
|
||||
#include <cutils/log.h>
|
||||
#endif /* use log/log.h start from android 8 major version */
|
||||
#ifndef ALOGW
|
||||
#define ALOGW LOGW
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -284,7 +284,11 @@ extern int INTEL_DEBUG;
|
|||
|
||||
#ifdef HAVE_ANDROID_PLATFORM
|
||||
#define LOG_TAG "INTEL-MESA"
|
||||
#if ANDROID_API_LEVEL >= 26
|
||||
#include <log/log.h>
|
||||
#else
|
||||
#include <cutils/log.h>
|
||||
#endif /* use log/log.h start from android 8 major version */
|
||||
#ifndef ALOGW
|
||||
#define ALOGW LOGW
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue