diff --git a/nsinit/exec.go b/nsinit/exec.go index e76e060d..430dd89f 100644 --- a/nsinit/exec.go +++ b/nsinit/exec.go @@ -57,7 +57,7 @@ func (ns *linuxNs) Exec(container *libcontainer.Container, term Terminal, args [ if err != nil { return -1, err } - ns.logger.Printf("writting pid %d to file\n", command.Process.Pid) + ns.logger.Printf("writing pid %d to file\n", command.Process.Pid) if err := ns.stateWriter.WritePid(command.Process.Pid, started); err != nil { command.Process.Kill() return -1, err diff --git a/nsinit/nsinit/main.go b/nsinit/nsinit/main.go index 37aa7849..0965c1c8 100644 --- a/nsinit/nsinit/main.go +++ b/nsinit/nsinit/main.go @@ -32,7 +32,7 @@ func main() { registerFlags() if flag.NArg() < 1 { - log.Fatalf("wrong number of argments %d", flag.NArg()) + log.Fatalf("wrong number of arguments %d", flag.NArg()) } container, err := loadContainer() if err != nil { @@ -73,7 +73,7 @@ func main() { l.Fatal(err) } if flag.NArg() < 2 { - l.Fatalf("wrong number of argments %d", flag.NArg()) + l.Fatalf("wrong number of arguments %d", flag.NArg()) } syncPipe, err := nsinit.NewSyncPipeFromFd(0, uintptr(pipeFd)) if err != nil {