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/size_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/size_test.go') diff --git a/prog/size_test.go b/prog/size_test.go index 5b49c437a..62f6237c1 100644 --- a/prog/size_test.go +++ b/prog/size_test.go @@ -18,7 +18,7 @@ func TestAssignSizeRandom(t *testing.T) { target.assignSizesCall(call) } if data1 := p.Serialize(); !bytes.Equal(data0, data1) { - t.Fatalf("different lens assigned, initial:\n%s\nnew:\n%s\n", data0, data1) + t.Fatalf("different lens assigned, initial:\n%s\nnew:\n%s", data0, data1) } p.Mutate(rs, 10, ct, nil, nil) p.Serialize() -- cgit mrf-deployment