Fix typos in nsinit logs.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
This commit is contained in:
Rohit Jnagal 2014-04-25 00:20:14 +00:00
parent 60159f9737
commit 8173da962b
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ func (ns *linuxNs) Exec(container *libcontainer.Container, term Terminal, args [
if err != nil { if err != nil {
return -1, err 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 { if err := ns.stateWriter.WritePid(command.Process.Pid, started); err != nil {
command.Process.Kill() command.Process.Kill()
return -1, err return -1, err

View file

@ -32,7 +32,7 @@ func main() {
registerFlags() registerFlags()
if flag.NArg() < 1 { 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() container, err := loadContainer()
if err != nil { if err != nil {
@ -73,7 +73,7 @@ func main() {
l.Fatal(err) l.Fatal(err)
} }
if flag.NArg() < 2 { 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)) syncPipe, err := nsinit.NewSyncPipeFromFd(0, uintptr(pipeFd))
if err != nil { if err != nil {