aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2014-04-20 11:02:01 +0200
committerJan Ziak <0xe2.0x9a.0x9b@gmail.com>2014-04-20 11:02:01 +0200
commit943dc2cb8d1a2b56a7e61b2d49b519161efe0dbf (patch)
tree6c328f3a092ce42ff398cf3650e56fabbe1c59a0
parent09aeca5c04a6a6775e91857459e05888721d6999 (diff)
downloadgo-943dc2cb8d1a2b56a7e61b2d49b519161efe0dbf.tar.gz
go-943dc2cb8d1a2b56a7e61b2d49b519161efe0dbf.zip
cmd/gc: avoid %L in error message
Fixes #7783 LGTM=minux.ma R=rsc, minux.ma CC=golang-codereviews https://golang.org/cl/89290043
-rw-r--r--src/cmd/gc/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c
index 7e28205656..a50101c429 100644
--- a/src/cmd/gc/lex.c
+++ b/src/cmd/gc/lex.c
@@ -214,7 +214,7 @@ main(int argc, char *argv[])
// but not other values.
p = getgoarch();
if(strncmp(p, thestring, strlen(thestring)) != 0)
- fatal("cannot use %cg with GOARCH=%s", thechar, p);
+ sysfatal("cannot use %cg with GOARCH=%s", thechar, p);
goarch = p;
linkarchinit();