]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile, cmd/link: fix printf verbs
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 14 Sep 2016 18:35:29 +0000 (11:35 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 14 Sep 2016 18:50:45 +0000 (18:50 +0000)
Found by vet.

Change-Id: I9dbc6208ddbb5b407f4ddd20efbc166aac852cf7
Reviewed-on: https://go-review.googlesource.com/29162
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/decompose.go
src/cmd/link/internal/ld/data.go

index 2a26a40428f4efbe6d711aaa69795077a3332192..04f45c1134b6bf1ce3339f90ace10fae17f05d21 100644 (file)
@@ -97,7 +97,7 @@ func decomposeBuiltIn(f *Func) {
                case t.IsFloat():
                        // floats are never decomposed, even ones bigger than IntSize
                case t.Size() > f.Config.IntSize:
-                       f.Fatalf("undecomposed named type %s %s", name, t)
+                       f.Fatalf("undecomposed named type %v %v", name, t)
                default:
                        newNames = append(newNames, name)
                }
index 04e6d3bdb7278b871053fc44c48e437c267b3991..3fd2deb157e90593435c4043c8a0257f4df4c302 100644 (file)
@@ -452,7 +452,7 @@ func relocsym(ctxt *Link, s *Symbol) {
                                // We are linking the final executable, so we
                                // can optimize any TLS IE relocation to LE.
                                if Thearch.TLSIEtoLE == nil {
-                                       log.Fatalf("internal linking of TLS IE not supported on %s", SysArch.Family)
+                                       log.Fatalf("internal linking of TLS IE not supported on %v", SysArch.Family)
                                }
                                Thearch.TLSIEtoLE(s, int(off), int(r.Siz))
                                o = int64(ctxt.Tlsoffset)