]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] runtime: print to stderr as well as android logd
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 20 Feb 2015 18:15:56 +0000 (13:15 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 20 Feb 2015 18:30:09 +0000 (18:30 +0000)
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>
src/runtime/print1_write_android.go

index 1f4f0996fe18abb2add2b0afb24ef216aa9a52c3..54d4826375e7114c73c123ebdd9fae1ad628f3d8 100644 (file)
@@ -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>