runtime: repair the android build

The android log symbol is `print` rather than `printf`.
This commit is contained in:
Saleem Abdulrasool
2020-05-21 23:31:34 +00:00
parent 417e1737bf
commit 138e4bcbaf

View File

@@ -44,7 +44,7 @@ void error(const char *fmt, ...) {
#if defined(__APPLE__)
asl_log(nullptr, nullptr, ASL_LEVEL_ERR, "%s", buffer);
#elif defined(__ANDROID__)
__android_log_printf(ANDROID_LOG_FATAL, "SwiftRuntime", "%s", buffer);
__android_log_print(ANDROID_LOG_FATAL, "SwiftRuntime", "%s", buffer);
#elif defined(_WIN32)
#define STDERR_FILENO 2
_write(STDERR_FILENO, buffer, strlen(buffer));