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

Issue 6343047: code review 6343047: cmd/dist: Make windows.c's fatal() print to stderr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by peted
Modified:
12 years, 10 months ago
Reviewers:
CC:
golang-dev, brainman
Visibility:
Public.

Description

cmd/dist: Make windows.c's fatal() print to stderr Generating env.bat using dist env -wp > env.bat failed silently if case of an error, because the message was redirected to env.bat. Verbose messages still go to stdout, causing problems, but that's a seperate change. Made errprintf() identical to xprintf(), except for the output handle. Yes, it's duplicate code, but most of the function is unpacking the argument list and preparing it for WriteFile(), which has to be done anyway.

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M src/cmd/dist/windows.c View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 5
peted
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 10 months ago (2012-06-27 11:18:25 UTC) #1
brainman
http://codereview.appspot.com/6343047/diff/5001/src/cmd/dist/windows.c File src/cmd/dist/windows.c (right): http://codereview.appspot.com/6343047/diff/5001/src/cmd/dist/windows.c#newcode129 src/cmd/dist/windows.c:129: vfprintf(stderr, fmt, arg); This is different from xprintf does. ...
12 years, 10 months ago (2012-06-28 04:20:25 UTC) #2
peted
Hello golang-dev@googlegroups.com, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2012-06-29 13:30:19 UTC) #3
brainman
LGTM Thank you. Alex
12 years, 10 months ago (2012-06-30 14:26:29 UTC) #4
brainman
12 years, 10 months ago (2012-06-30 14:27:15 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=3f7501fdb220 ***

cmd/dist: Make windows.c's fatal() print to stderr

Generating env.bat using dist env -wp > env.bat failed silently
if case of an error, because the message was redirected to env.bat.
Verbose messages still go to stdout, causing problems, but that's
a seperate change.
Made errprintf() identical to xprintf(), except for the output handle.
Yes, it's duplicate code, but most of the function is unpacking
the argument list and preparing it for WriteFile(), which has to be
done anyway.

R=golang-dev, alex.brainman
CC=golang-dev
http://codereview.appspot.com/6343047

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

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