From 6d21b2ba80e274e49d67e8f3d88bf9b3df567ff5 Mon Sep 17 00:00:00 2001 From: Ankush Agarwal Date: Fri, 27 Mar 2015 11:27:03 -0700 Subject: [PATCH] Replace fmt.Fprint* with io.WriteString This fixes vet warnings in api/client/stats.go Fixes #11825 Signed-off-by: Ankush Agarwal --- api/client/stats.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/client/stats.go b/api/client/stats.go index eda9ac1524..6df22ff3d2 100644 --- a/api/client/stats.go +++ b/api/client/stats.go @@ -123,9 +123,9 @@ func (cli *DockerCli) CmdStats(args ...string) error { w = tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0) ) printHeader := func() { - fmt.Fprint(cli.out, "\033[2J") - fmt.Fprint(cli.out, "\033[H") - fmt.Fprintln(w, "CONTAINER\tCPU %\tMEM USAGE/LIMIT\tMEM %\tNET I/O") + io.WriteString(cli.out, "\033[2J") + io.WriteString(cli.out, "\033[H") + io.WriteString(w, "CONTAINER\tCPU %\tMEM USAGE/LIMIT\tMEM %\tNET I/O\n") } for _, n := range names { s := &containerStats{Name: n}