From: David Crawshaw Date: Fri, 20 Feb 2015 18:15:56 +0000 (-0500) Subject: [dev.cc] runtime: print to stderr as well as android logd X-Git-Tag: go1.5beta1~1915^2~27 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=84e200cbcbbef74bd0eb587ae460a37b6b9463c6;p=gostls13.git [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 --- 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" // //