Skip to content

Commit 2d25850

Browse files
authored
Merge pull request #31956 from compnerd/android-logging
runtime: repair the android build
2 parents 18d4f63 + 138e4bc commit 2d25850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/LLVMSupport/ErrorHandling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void error(const char *fmt, ...) {
4444
#if defined(__APPLE__)
4545
asl_log(nullptr, nullptr, ASL_LEVEL_ERR, "%s", buffer);
4646
#elif defined(__ANDROID__)
47-
__android_log_printf(ANDROID_LOG_FATAL, "SwiftRuntime", "%s", buffer);
47+
__android_log_print(ANDROID_LOG_FATAL, "SwiftRuntime", "%s", buffer);
4848
#elif defined(_WIN32)
4949
#define STDERR_FILENO 2
5050
_write(STDERR_FILENO, buffer, strlen(buffer));

0 commit comments

Comments
 (0)