mesa/src/android_stub/log_stub.cpp
Chia-I Wu bbd19527c1 util/log: improve logger_android
Avoid __android_log_vprint which can truncate messages.  Also add
MESA_LOG=wait to lower the chance of logger_android dropping messages.

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21454>
2023-02-22 17:55:40 +00:00

20 lines
319 B
C++

#include <android/log.h>
extern "C" {
int __android_log_write(int prio, const char* tag, const char* text)
{
return 0;
}
int __android_log_print(int prio, const char* tag, const char* fmt, ...)
{
return 0;
}
int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap)
{
return 0;
}
}