commit | 84e200cbcbbef74bd0eb587ae460a37b6b9463c6 | [log] [tgz] |
---|---|---|
author | David Crawshaw <crawshaw@golang.org> | Fri Feb 20 13:15:56 2015 -0500 |
committer | David Crawshaw <crawshaw@golang.org> | Fri Feb 20 18:30:09 2015 +0000 |
tree | 95ffc1d8ab020247d77f7ddf37b81e53e5700101 | |
parent | adff896e4c8c89a692b93c4db44be7f019925134 [diff] [blame] |
[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 <hyangah@gmail.com>
diff --git a/src/runtime/print1_write_android.go b/src/runtime/print1_write_android.go index 1f4f099..54d4826 100644 --- a/src/runtime/print1_write_android.go +++ b/src/runtime/print1_write_android.go
@@ -45,6 +45,9 @@ } } + // 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>