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/encoding_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/encoding_test.go') diff --git a/prog/encoding_test.go b/prog/encoding_test.go index bf4f708d1..608f94371 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -432,8 +432,8 @@ func testSerializeDeserialize(t *testing.T, p0 *Prog) ([]byte, []byte, bool) { t.Fatal(err) } if !bytes.Equal(data0, data1) { - t.Logf("PROG0:\n%s\n", p0.Serialize()) - t.Logf("PROG1:\n%s\n", p1.Serialize()) + t.Logf("PROG0:\n%s", p0.Serialize()) + t.Logf("PROG1:\n%s", p1.Serialize()) return data0, data1, false } return nil, nil, true -- cgit mrf-deployment