cmd/compile: fix format verbs in ssa package
%s is no longer valid. Use %v instead.
Change-Id: I5ec4fa6a9280082c1a0c75fd1cf94b4bb8096f5c
Reviewed-on: https://go-review.googlesource.com/29365
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/src/cmd/compile/internal/ssa/value.go b/src/cmd/compile/internal/ssa/value.go
index 71955aa..b53e41c 100644
--- a/src/cmd/compile/internal/ssa/value.go
+++ b/src/cmd/compile/internal/ssa/value.go
@@ -97,7 +97,7 @@
// long form print. v# = opcode <type> [aux] args [: reg]
func (v *Value) LongString() string {
- s := fmt.Sprintf("v%d = %s", v.ID, v.Op.String())
+ s := fmt.Sprintf("v%d = %s", v.ID, v.Op)
s += " <" + v.Type.String() + ">"
s += v.auxString()
for _, a := range v.Args {
@@ -134,12 +134,12 @@
return fmt.Sprintf(" {%q}", v.Aux)
case auxSym:
if v.Aux != nil {
- return fmt.Sprintf(" {%s}", v.Aux)
+ return fmt.Sprintf(" {%v}", v.Aux)
}
case auxSymOff, auxSymInt32:
s := ""
if v.Aux != nil {
- s = fmt.Sprintf(" {%s}", v.Aux)
+ s = fmt.Sprintf(" {%v}", v.Aux)
}
if v.AuxInt != 0 {
s += fmt.Sprintf(" [%v]", v.AuxInt)
@@ -148,7 +148,7 @@
case auxSymValAndOff:
s := ""
if v.Aux != nil {
- s = fmt.Sprintf(" {%s}", v.Aux)
+ s = fmt.Sprintf(" {%v}", v.Aux)
}
return s + fmt.Sprintf(" [%s]", v.AuxValAndOff())
}