summaryrefslogtreecommitdiff
path: root/src/cmd/gc/subr.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-03-03 17:23:47 -0800
committerRuss Cox <rsc@golang.org>2010-03-03 17:23:47 -0800
commitc6375eefbc407e0ce3ffdae07954b0043e3b4beb (patch)
treeefc2931a8124508eb694cf18a12e8a5b5ed8275b /src/cmd/gc/subr.c
parent159fef9621137a859bc11ef1a335edf548fc123a (diff)
downloadgolang-c6375eefbc407e0ce3ffdae07954b0043e3b4beb.tar.gz
gc: fix imported and not used message - show path
R=ken2 CC=golang-dev http://codereview.appspot.com/229046
Diffstat (limited to 'src/cmd/gc/subr.c')
-rw-r--r--src/cmd/gc/subr.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}