Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(44)

Issue 108400045: code review 108400045: runtime/cgo: replace fprintf(stderr, ...) with fatalf(...) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by crawshaw
Modified:
10 years, 11 months ago
Reviewers:
gobot, minux, dave
CC:
minux, dave_cheney.net, golang-codereviews
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r 1dd7bae31e8c https://code.google.com/p/go #

Patch Set 3 : diff -r 1dd7bae31e8c https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : diff -r 1dd7bae31e8c https://code.google.com/p/go #

Patch Set 5 : diff -r 3a3269902fa7 https://code.google.com/p/go #

Patch Set 6 : diff -r 3a3269902fa7 https://code.google.com/p/go #

Patch Set 7 : diff -r 3a3269902fa7 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -15 lines) Patch
A src/pkg/runtime/cgo/gcc_android.c View 1 1 chunk +31 lines, -0 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_android_arm.c View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
A src/pkg/runtime/cgo/gcc_fatalf.c View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_linux_386.c View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_linux_amd64.c View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_linux_arm.c View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M src/pkg/runtime/cgo/libcgo.h View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8
crawshaw
Hello minux@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 11 months ago (2014-07-03 21:50:46 UTC) #1
minux
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
crawshaw
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*, ...); On 2014/07/03 23:16:11, minux wrote: ...
10 years, 11 months ago (2014-07-03 23:22:42 UTC) #3
minux
LGTM.
10 years, 11 months ago (2014-07-03 23:28:43 UTC) #4
minux
please add "for linux/android" to the description.
10 years, 11 months ago (2014-07-03 23:29:36 UTC) #5
dave_cheney.net
LGTM (with minux's request). Tested fine on darwin/amd64 and linux/arm on some odd arch linux ...
10 years, 11 months ago (2014-07-03 23:46:09 UTC) #6
crawshaw
*** 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
gobot
10 years, 11 months ago (2014-07-04 01:16:33 UTC) #8
Message was sent while issue was closed.
This CL appears to have broken the plan9-386-cnielsen builder.
See http://build.golang.org/log/f75d828a68cdcbc7de0d056b9339d52b721dad1b
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b