From c6375eefbc407e0ce3ffdae07954b0043e3b4beb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 3 Mar 2010 17:23:47 -0800 Subject: gc: fix imported and not used message - show path R=ken2 CC=golang-dev http://codereview.appspot.com/229046 --- src/cmd/gc/subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/gc/subr.c') diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index f6ca359e8..d3354c904 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -360,7 +360,7 @@ importdot(Pkg *opkg, Node *pack) } if(n == 0) { // can't possibly be used - there were no symbols - yyerrorl(pack->lineno, "imported and not used: %s", pack->sym->name); + yyerrorl(pack->lineno, "imported and not used: %Z", opkg->path); } } -- cgit v1.2.3