runtime/cgo: replace fprintf(stderr, ...) with fatalf(...) for linux/android
Both stdout and stderr are sent to /dev/null in android
apps. Introducing fatalf allows android to implement its
own copy that sends fatal errors to __android_log_print.
https://codereview.appspot.com/108400045/diff/40001/src/pkg/runtime/cgo/gcc_linux_arm.c File src/pkg/runtime/cgo/gcc_linux_arm.c (right): https://codereview.appspot.com/108400045/diff/40001/src/pkg/runtime/cgo/gcc_linux_arm.c#newcode13 src/pkg/runtime/cgo/gcc_linux_arm.c:13: void (*x_cgo_fatalf)(const char*, ...); what does this do? where ...
10 years, 11 months ago
(2014-07-03 23:16:11 UTC)
#2
*** Submitted as https://code.google.com/p/go/source/detail?r=aa480930f37e *** runtime/cgo: replace fprintf(stderr, ...) with fatalf(...) for linux/android Both stdout ...
10 years, 11 months ago
(2014-07-04 01:05:10 UTC)
#7
*** Submitted as https://code.google.com/p/go/source/detail?r=aa480930f37e ***
runtime/cgo: replace fprintf(stderr, ...) with fatalf(...) for linux/android
Both stdout and stderr are sent to /dev/null in android
apps. Introducing fatalf allows android to implement its
own copy that sends fatal errors to __android_log_print.
LGTM=minux, dave
R=minux, dave
CC=golang-codereviews
https://codereview.appspot.com/108400045
Issue 108400045: code review 108400045: runtime/cgo: replace fprintf(stderr, ...) with fatalf(...)
(Closed)
Created 10 years, 11 months ago by crawshaw
Modified 10 years, 11 months ago
Reviewers: gobot
Base URL:
Comments: 2