From acc528cbf40c42eb112d2ce66c5f778bd4a397fb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 16 Apr 2024 16:35:18 +0200 Subject: tools/syz-linter: check t.Logf/Errorf/Fatalf messages Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf. --- prog/alloc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/alloc_test.go') diff --git a/prog/alloc_test.go b/prog/alloc_test.go index c1d0317a5..24fef233d 100644 --- a/prog/alloc_test.go +++ b/prog/alloc_test.go @@ -92,6 +92,6 @@ func TestVmaAlloc(t *testing.T) { for i := 0; i < 30; i++ { size := r.rand(4) + 1 page := va.alloc(r, size) - t.Logf("alloc(%v) = %3v-%3v\n", size, page, page+size) + t.Logf("alloc(%v) = %3v-%3v", size, page, page+size) } } -- cgit mrf-deployment