diff options
Diffstat (limited to 'tools/syz-check/check.go')
| -rw-r--r-- | tools/syz-check/check.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 8021e8720..bc57ea462 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -230,7 +230,7 @@ func checkImpl(structs map[string]*dwarf.StructType, structTypes []prog.Type, func checkStruct(typ prog.Type, astStruct *ast.Struct, str *dwarf.StructType) ([]Warn, error) { var warnings []Warn - warn := func(pos ast.Pos, typ, msg string, args ...interface{}) { + warn := func(pos ast.Pos, typ, msg string, args ...any) { warnings = append(warnings, Warn{pos: pos, typ: typ, msg: fmt.Sprintf(msg, args...)}) } name := typ.TemplateName() @@ -558,7 +558,7 @@ func isNlattr(typ prog.Type) bool { func checkNetlinkPolicy(structMap map[string]prog.Type, typ prog.Type, fields []prog.Field, astStruct *ast.Struct, policy []nlaPolicy) ([]Warn, map[int]bool, error) { var warnings []Warn - warn := func(pos ast.Pos, typ, msg string, args ...interface{}) { + warn := func(pos ast.Pos, typ, msg string, args ...any) { warnings = append(warnings, Warn{pos: pos, typ: typ, msg: fmt.Sprintf(msg, args...)}) } checked := make(map[int]bool) |
