From 76b2f06ee54f92b104412bdf9fefd8e7915969d3 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Tue, 30 Dec 2014 19:48:26 -0500 Subject: [PATCH] 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 --- src/cmd/gc/typecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 828ca34df51..bc4214e37d6 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); } }