OSDN Git Service

Merge remote-tracking branch 'mesa/18.3' into oreo-x86
[android-x86/external-mesa.git] / src / mesa / main / errors.c
index 30560ba..4f1fb0d 100644 (file)
 #include "context.h"
 #include "debug_output.h"
 
+#if defined(ANDROID)
+#  define LOG_TAG "mesa"
+#  include <log/log.h>
+#endif
 
 static FILE *LogFile = NULL;
 
@@ -89,6 +93,10 @@ output_if_debug(const char *prefixString, const char *outputString,
          _mesa_snprintf(buf, sizeof(buf), "%s: %s%s", prefixString, outputString, newline ? "\n" : "");
          OutputDebugStringA(buf);
       }
+#elif defined(ANDROID)
+      {
+         ALOGD("%s: %s", prefixString, outputString);
+      }
 #endif
    }
 }