From 102fb10fdeef0716497415d9aa71fb1646720019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Lipt=C3=A1k?= Date: Tue, 20 Dec 2016 17:08:42 -0500 Subject: [PATCH] Correct vet warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gábor Lipták --- cmd/containerd/main.go | 2 +- execution/service.go | 4 ++-- snapshot/btrfs_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/containerd/main.go b/cmd/containerd/main.go index 0cb954f..ad8a286 100644 --- a/cmd/containerd/main.go +++ b/cmd/containerd/main.go @@ -135,7 +135,7 @@ high performance container runtime ctx = log.WithModule(ctx, "execution") ctx = events.WithPoster(ctx, events.GetNATSPoster(nec)) default: - fmt.Println("Unknown type: %#v", info.Server) + fmt.Printf("Unknown type: %#v\n", info.Server) } return handler(ctx, req) } diff --git a/execution/service.go b/execution/service.go index cb3303b..5636c5b 100644 --- a/execution/service.go +++ b/execution/service.go @@ -160,8 +160,8 @@ func (s *Service) StartProcess(ctx context.Context, r *api.StartProcessRequest) spec := specs.Process{ Terminal: r.Process.Terminal, ConsoleSize: specs.Box{ - 80, - 80, + Height: 80, + Width: 80, }, Args: r.Process.Args, Env: r.Process.Env, diff --git a/snapshot/btrfs_test.go b/snapshot/btrfs_test.go index 2511bd0..69311d7 100644 --- a/snapshot/btrfs_test.go +++ b/snapshot/btrfs_test.go @@ -32,12 +32,12 @@ func TestBtrfs(t *testing.T) { for _, mount := range mounts { if mount.Type != "btrfs" { - t.Fatal("wrong mount type: %v != btrfs", mount.Type) + t.Fatalf("wrong mount type: %v != btrfs", mount.Type) } // assumes the first, maybe incorrect in the future if !strings.HasPrefix(mount.Options[0], "subvolid=") { - t.Fatal("no subvolid option in %v", mount.Options) + t.Fatalf("no subvolid option in %v", mount.Options) } }