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. --- executor/style_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/style_test.go b/executor/style_test.go index 501b58fea..e41674d1c 100644 --- a/executor/style_test.go +++ b/executor/style_test.go @@ -190,7 +190,7 @@ if (foo) { } line := bytes.Count(data[:start], []byte{'\n'}) + 1 - t.Errorf("\nexecutor/%v:%v: %v\n%s\n", file, line, check.message, data[start:end]) + t.Errorf("\nexecutor/%v:%v: %v\n%s", file, line, check.message, data[start:end]) } } } -- cgit mrf-deployment