From 3da2432fb9dce67f1236c96a8d81604a98fda523 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Mon, 18 Dec 2023 10:54:53 +0800 Subject: all: fix some function names in comments Signed-off-by: cui fliter --- dashboard/app/tree.go | 2 +- pkg/compiler/check.go | 2 +- pkg/log/log.go | 2 +- tools/syz-trace2syz/parser/parser.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard/app/tree.go b/dashboard/app/tree.go index 4fca21fa0..08da1a804 100644 --- a/dashboard/app/tree.go +++ b/dashboard/app/tree.go @@ -228,7 +228,7 @@ func (ctx *bugTreeContext) setOriginLabels() pollTreeJobResult { return pollResultSkip{} } -// selectRepoNodes attributes bugs to trees depending on the patch testing results. +// selectRepoLabels attributes bugs to trees depending on the patch testing results. func (ctx *bugTreeContext) selectRepoLabels(in bool, results map[*repoNode]pollTreeJobResult) []string { crashed := map[*repoNode]bool{} for node, result := range results { diff --git a/pkg/compiler/check.go b/pkg/compiler/check.go index 00695b6b1..aa83f8c8d 100644 --- a/pkg/compiler/check.go +++ b/pkg/compiler/check.go @@ -423,7 +423,7 @@ type parentDesc struct { fields []*ast.Field } -// templateName return the part before '[' for full template names. +// templateBase return the part before '[' for full template names. func templateBase(name string) string { if pos := strings.IndexByte(name, '['); pos != -1 { return name[:pos] diff --git a/pkg/log/log.go b/pkg/log/log.go index f8a292320..95cdb7fc8 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -29,7 +29,7 @@ var ( prependTime = true // for testing ) -// EnableCaching enables in memory caching of log output. +// EnableLogCaching enables in memory caching of log output. // Caches up to maxLines, but no more than maxMem bytes. // Cached output can later be queried with CachedOutput. func EnableLogCaching(maxLines, maxMem int) { diff --git a/tools/syz-trace2syz/parser/parser.go b/tools/syz-trace2syz/parser/parser.go index d7df4536b..b91f3ac29 100644 --- a/tools/syz-trace2syz/parser/parser.go +++ b/tools/syz-trace2syz/parser/parser.go @@ -28,7 +28,7 @@ func shouldSkip(line string) bool { strings.Contains(line, "") } -// ParseLoop parses each line of a strace file in a loop. +// ParseData parses each line of a strace file in a loop. func ParseData(data []byte) (*TraceTree, error) { tree := NewTraceTree() // Creating the process tree -- cgit mrf-deployment