From bf91eb3a8bb057a620f3823e4d6b74a529c0a44d Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 23 May 2024 10:47:36 -0400 Subject: 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 Reviewed-by: Russ Cox --- src/runtime/pprof/pprof_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime') diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index 512e07e491..09abbb31ae 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -1272,7 +1272,7 @@ func TestMutexProfile(t *testing.T) { if ok, err := regexp.MatchString(r3, lines[5]); err != nil || !ok { t.Errorf("%q didn't match %q", lines[5], r3) } - t.Logf(prof) + t.Log(prof) }) t.Run("proto", func(t *testing.T) { // proto format -- cgit v1.3-5-g9baa