aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/runtime/print1_write_android.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/print1_write_android.go b/src/runtime/print1_write_android.go
index 1f4f0996fe..54d4826375 100644
--- a/src/runtime/print1_write_android.go
+++ b/src/runtime/print1_write_android.go
@@ -45,6 +45,9 @@ func writeErr(b []byte) {
}
}
+ // Write to stderr for command-line programs.
+ write(2, unsafe.Pointer(&b[0]), int32(len(b)))
+
// Log format: "<header>\x00<message m bytes>\x00"
//
// <header>