mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
std: fix calls to Printf(s) with non-constant s
In all cases the intent was not to interpret s as a format string. In one case (go/types), this was a latent bug in production. (These were uncovered by a new check in vet's printf analyzer.) Updates #60529 Change-Id: I3e17af7e589be9aec1580783a1b1011c52ec494b Reviewed-on: https://go-review.googlesource.com/c/go/+/587855 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
c34c124f40
commit
bf91eb3a8b
14 changed files with 18 additions and 18 deletions
|
|
@ -197,7 +197,7 @@ func testForSpecificFunctions(t *testing.T, dir string, want []string, avoid []s
|
|||
}
|
||||
}
|
||||
if rval != "" {
|
||||
t.Logf("=-= begin output:\n" + output + "\n=-= end output\n")
|
||||
t.Logf("=-= begin output:\n%s\n=-= end output\n", output)
|
||||
}
|
||||
return rval
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue