From: Shenghou Ma Date: Wed, 31 Dec 2014 00:48:26 +0000 (-0500) Subject: cmd/gc: fix filename output format verb for -s X-Git-Tag: go1.5beta1~2490 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=76b2f06ee54f92b104412bdf9fefd8e7915969d3;p=gostls13.git cmd/gc: fix filename output format verb for -s %lL will prepend the current directory to the filename, which is not what we want here (as the file name is already absolute). Fixes #9150. Change-Id: I4c9386be6baf421393b92d9401a264b4692986d0 Reviewed-on: https://go-review.googlesource.com/2231 Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 828ca34df5..bc4214e37d 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -2537,7 +2537,7 @@ pushtype(Node *n, Type *t) else if(debug['s']) { typecheck(&n->right, Etype); if(n->right->type != T && eqtype(n->right->type, t)) - print("%lL: redundant type: %T\n", n->lineno, t); + print("%L: redundant type: %T\n", n->lineno, t); } }