From fcec29826eebbf42fad77832650bd2a809784b35 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 24 May 2020 14:02:41 +0200 Subject: tools/syz-check: fix field name in output --- tools/syz-check/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 29f88093a..9c60615a0 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -263,7 +263,7 @@ func checkStruct(typ *prog.StructType, astStruct *ast.Struct, str *dwarf.StructT if ai < len(str.Field) { fld := str.Field[ai] pos := astStruct.Fields[ai].Pos - desc := fmt.Sprintf("%v.%v", name, fld.Name) + desc := fmt.Sprintf("%v.%v", name, field.Name) if field.Name != fld.Name { desc += "/" + fld.Name } -- cgit mrf-deployment