Browse code

It is better to add "\n" in printf

Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>

YuPengZTE authored on 2016/08/23 09:59:45
Showing 2 changed files
... ...
@@ -218,7 +218,7 @@ func (s *DockerSuite) TestImagesFilterSpaceTrimCase(c *check.C) {
218 218
 	for idx, listing := range imageListings {
219 219
 		if idx < 4 && !reflect.DeepEqual(listing, imageListings[idx+1]) {
220 220
 			for idx, errListing := range imageListings {
221
-				fmt.Printf("out %d", idx)
221
+				fmt.Printf("out %d\n", idx)
222 222
 				for _, image := range errListing {
223 223
 					fmt.Print(image)
224 224
 				}
... ...
@@ -87,7 +87,7 @@ func init() {
87 87
 	var err error
88 88
 	dockerBinary, err = exec.LookPath(dockerBinary)
89 89
 	if err != nil {
90
-		fmt.Printf("ERROR: couldn't resolve full path to the Docker binary (%v)", err)
90
+		fmt.Printf("ERROR: couldn't resolve full path to the Docker binary (%v)\n", err)
91 91
 		os.Exit(1)
92 92
 	}
93 93
 	if registryImage := os.Getenv("REGISTRY_IMAGE"); registryImage != "" {