diff --git a/pkg/common/log/log.go b/pkg/common/log/log.go index f9e9314476b6a33e4f709521c2f30af0c51eb1ff..28f1f9d94274019ff187d884fc4d699ac8265af2 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 991c2cd9554ad97fc90da58c3e08ec5082c4c1f0..fd548e1f9db025500b0b98933923af62b8dfbe37 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 9fc68842f34a5ca37b440f2f39200ee59462a4b9..f5f426a57f6a621b0ba3c442def91fa3d33313b7 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 c8f038c980124ab30e081a4d87f0c28a37e7a915..6042b000b7130b0c75a5ece9b4f2db716adf1f54 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 a61499438b220b1fb797612d77b71ac0b5dcbfaf..0d730298ddbbcb7bf9218bf0000b3771af909555 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()