mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
intel: use stable NDK __android_log_print helper
The NDK api __android_log_print has been available since api level 3, which is preferred since NDK api is more stable. Acked-by: Valentine Burley <valentine.burley@collabora.com> Reviewed-by: Dhruv Mark Collins <mark@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41254>
This commit is contained in:
parent
8ea8e87378
commit
2065c589c0
1 changed files with 2 additions and 9 deletions
|
|
@ -175,15 +175,8 @@ extern uint32_t intel_shader_dump_filter;
|
|||
|
||||
#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
|
||||
#define dbg_printf(...) ALOGW(__VA_ARGS__)
|
||||
#include <android/log.h>
|
||||
#define dbg_printf(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
||||
#else
|
||||
#define dbg_printf(...) fprintf(stderr, __VA_ARGS__)
|
||||
#endif /* HAVE_ANDROID_PLATFORM */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue