diff --git a/pkg/sentry/seccheck/sinks/remote/remote_test.go b/pkg/sentry/seccheck/sinks/remote/remote_test.go index 9640e1d121..407280d9c3 100644 --- a/pkg/sentry/seccheck/sinks/remote/remote_test.go +++ b/pkg/sentry/seccheck/sinks/remote/remote_test.go @@ -224,7 +224,7 @@ func TestExample(t *testing.T) { return nil } if err := testutil.Poll(check, time.Second); err != nil { - t.Errorf(err.Error()) + t.Errorf("%s", err.Error()) } } diff --git a/pkg/tcpip/link/sharedmem/sharedmem_test.go b/pkg/tcpip/link/sharedmem/sharedmem_test.go index 2f4d0b0518..3a30ac1ce9 100644 --- a/pkg/tcpip/link/sharedmem/sharedmem_test.go +++ b/pkg/tcpip/link/sharedmem/sharedmem_test.go @@ -171,7 +171,7 @@ func (c *testContext) waitForPackets(n int, to <-chan time.Time, errorStr string select { case <-c.packetCh: case <-to: - c.t.Fatalf(errorStr) + c.t.Fatal(errorStr) } } } diff --git a/tools/checklinkname/check_linkname.go b/tools/checklinkname/check_linkname.go index 91069f739f..c18a01a167 100644 --- a/tools/checklinkname/check_linkname.go +++ b/tools/checklinkname/check_linkname.go @@ -131,7 +131,7 @@ func (u *UnresolvedLinknames) resolveRemaining(pass *analysis.Pass, resolvePos f } } -// go:linkname can be rather confusing. https://pkg.go.dev/cmd/compile says: +// "go:linkname" can be rather confusing. https://pkg.go.dev/cmd/compile says: // // //go:linkname localname [importpath.name] //