From 84e200cbcbbef74bd0eb587ae460a37b6b9463c6 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Fri, 20 Feb 2015 13:15:56 -0500 Subject: [PATCH] [dev.cc] runtime: print to stderr as well as android logd Restores stack traces in the android/arm builder. Change-Id: If637aa2ed6f8886126b77cf9cc8a0535ec7c4369 Reviewed-on: https://go-review.googlesource.com/5453 Reviewed-by: Hyang-Ah Hana Kim --- src/runtime/print1_write_android.go | 3 +++ 1 file changed, 3 insertions(+) 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: "
\x00\x00" // //
-- 2.48.1