From 8a793666ce551956a8167e8b021049090a6b2dc5 Mon Sep 17 00:00:00 2001 From: lixiang Date: Wed, 16 Oct 2024 16:20:29 +0800 Subject: [PATCH] submit some changes --- pkg/common/log/log.go | 2 +- pkg/core/typedef/nrirawpod.go | 2 +- pkg/feature/feature.go | 2 +- pkg/services/component.go | 2 +- vendor/github.com/cilium/ebpf/link/syscalls.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/common/log/log.go b/pkg/common/log/log.go index f9e9314..28f1f9d 100644 --- a/pkg/common/log/log.go +++ b/pkg/common/log/log.go @@ -246,7 +246,7 @@ func Warnf(format string, args ...interface{}) { logln(logWarn, format, args...) } -// Errorf output warn level logs when then log level of the logger is less than or equal to error level +// Errorf output error level logs when the log level of the logger is less than or equal to error level func Errorf(format string, args ...interface{}) { logln(logError, format, args...) } diff --git a/pkg/core/typedef/nrirawpod.go b/pkg/core/typedef/nrirawpod.go index 991c2cd..fd548e1 100644 --- a/pkg/core/typedef/nrirawpod.go +++ b/pkg/core/typedef/nrirawpod.go @@ -9,7 +9,7 @@ // See the Mulan PSL v2 for more details. // Author: weiyuan // Create: 2024-05-28 -// Description: This file defines NRIRawPod and NRIRawContainerwhich encapsulate nri pod and container info +// Description: This file defines NRIRawPod and NRIRawContainer which encapsulate nri pod and container info // Package typedef defines core struct and methods for rubik package typedef diff --git a/pkg/feature/feature.go b/pkg/feature/feature.go index 9fc6884..f5f426a 100644 --- a/pkg/feature/feature.go +++ b/pkg/feature/feature.go @@ -29,7 +29,7 @@ const ( QuotaBurstFeature = "quotaBurst" // QuotaTurboFeature is the QuotaTurbo feature name QuotaTurboFeature = "quotaTurbo" - // PSIFeature is the PSI feasture name + // PSIFeature is the PSI feature name PSIFeature = "psi" // CPIFeature is the CPI feature name CPIFeature = "cpi" diff --git a/pkg/services/component.go b/pkg/services/component.go index c8f038c..6042b00 100644 --- a/pkg/services/component.go +++ b/pkg/services/component.go @@ -9,7 +9,7 @@ // See the Mulan PSL v2 for more details. // Author: hanchao // Create: 2023-03-11 -// Description: This file is used to initilize all components +// Description: This file is used to initialize all components // Package services provide services to handle isolate features. package services diff --git a/vendor/github.com/cilium/ebpf/link/syscalls.go b/vendor/github.com/cilium/ebpf/link/syscalls.go index a614994..0d73029 100755 --- a/vendor/github.com/cilium/ebpf/link/syscalls.go +++ b/vendor/github.com/cilium/ebpf/link/syscalls.go @@ -40,7 +40,7 @@ var haveProgAttach = internal.FeatureTest("BPF_PROG_ATTACH", "4.10", func() erro return internal.ErrNotSupported } - // BPF_PROG_ATTACH was introduced at the same time as CGgroupSKB, + // BPF_PROG_ATTACH was introduced at the same time as CGroupSKB, // so being able to load the program is enough to infer that we // have the syscall. prog.Close() -- Gitee