From ac5d20cfb9060871b86407053c25bca89d1e4d70 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 16 Sep 2024 02:29:16 -0700 Subject: [PATCH] Fix some lint issues PiperOrigin-RevId: 675064804 --- pkg/sentry/seccheck/sinks/remote/remote_test.go | 2 +- pkg/tcpip/link/sharedmem/sharedmem_test.go | 2 +- tools/checklinkname/check_linkname.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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] //