aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-11 17:09:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-12 08:22:44 +0200
commitc1147c8df73eb61bc9d66e6628e0369e21f28670 (patch)
tree1f5f75bf13a32941025c134fdd236fb137cf3181 /pkg/host
parent0faffd0438df859fb66236085ac3992735900d26 (diff)
all: fix comments format
Fix capitalization, dots at the end and two spaces after a period. Update #1876
Diffstat (limited to 'pkg/host')
-rw-r--r--pkg/host/syscalls_linux.go2
-rw-r--r--pkg/host/syscalls_linux_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/host/syscalls_linux.go b/pkg/host/syscalls_linux.go
index 3f16d9ba0..18dc81d9e 100644
--- a/pkg/host/syscalls_linux.go
+++ b/pkg/host/syscalls_linux.go
@@ -358,7 +358,7 @@ func isSupportedOpenAt(c *prog.Syscall) (bool, string) {
modes := []int{syscall.O_RDONLY, syscall.O_WRONLY, syscall.O_RDWR}
- // Attempt to extract flags from the syscall description
+ // Attempt to extract flags from the syscall description.
if mode, ok := c.Args[2].Type.(*prog.ConstType); ok {
modes = []int{int(mode.Val)}
}
diff --git a/pkg/host/syscalls_linux_test.go b/pkg/host/syscalls_linux_test.go
index 8e9feeba2..3ce2e3517 100644
--- a/pkg/host/syscalls_linux_test.go
+++ b/pkg/host/syscalls_linux_test.go
@@ -116,7 +116,7 @@ c037c7f8 T sys_getppid
[]string{"setfsgid", "getpid", "gettid", "getppid"},
[]string{"setfsgid", "getpid", "gettid", "getppid"},
},
- // Test kallsymsRenameMap
+ // Test kallsymsRenameMap.
{
"ppc64le",
[]byte(`