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>
This commit is contained in:
Chia-I Wu
2023-02-17 15:22:17 -08:00
committed by Marge Bot
parent 7a18a1712a
commit bbd19527c1
2 changed files with 28 additions and 1 deletions
+5
View File
@@ -2,6 +2,11 @@
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;