From f593e91c0b6219af0cb904d275bb3dfcc1009593 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 7 Aug 2024 11:31:46 +0200 Subject: tools/syz-linter: check tool.Failf messages Check tool.Failf messages for the common style as well. --- sys/syz-extract/extract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/syz-extract') diff --git a/sys/syz-extract/extract.go b/sys/syz-extract/extract.go index 02d03e3cc..deaeb3f09 100644 --- a/sys/syz-extract/extract.go +++ b/sys/syz-extract/extract.go @@ -85,8 +85,8 @@ func main() { tool.Fail(err) } if *flagSourceDir == "" { - tool.Fail(fmt.Errorf("provide path to kernel checkout via -sourcedir " + - "flag (or make extract SOURCEDIR)")) + tool.Failf("provide path to kernel checkout via -sourcedir " + + "flag (or make extract SOURCEDIR)") } if err := extractor.prepare(*flagSourceDir, *flagBuild, arches); err != nil { tool.Fail(err) -- cgit mrf-deployment