]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: avoid %L in error message
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Sun, 20 Apr 2014 09:02:01 +0000 (11:02 +0200)
committerJan Ziak <0xe2.0x9a.0x9b@gmail.com>
Sun, 20 Apr 2014 09:02:01 +0000 (11:02 +0200)
Fixes #7783

LGTM=minux.ma
R=rsc, minux.ma
CC=golang-codereviews
https://golang.org/cl/89290043

src/cmd/gc/lex.c

index 7e28205656579875af3d9044489892b7c833017e..a50101c4299c5278377a962d13760474b6198211 100644 (file)
@@ -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();