From 943dc2cb8d1a2b56a7e61b2d49b519161efe0dbf Mon Sep 17 00:00:00 2001 From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Sun, 20 Apr 2014 11:02:01 +0200 Subject: [PATCH] cmd/gc: avoid %L in error message Fixes #7783 LGTM=minux.ma R=rsc, minux.ma CC=golang-codereviews https://golang.org/cl/89290043 --- src/cmd/gc/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.0