Merge pull request #76565 from xichengliudui/ends-With-Newline

Use fmt.printf() to end with a newline
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-15 14:25:22 -07:00 committed by GitHub
commit 8045a99a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ func genBinDataFromSeed(len int, seed int64) []byte {
len, err := rand.Read(binData)
if err != nil {
fmt.Printf("Error: %v", err)
fmt.Printf("Error: %v\n", err)
}
return binData

View File

@ -81,7 +81,7 @@ func check(options ...string) []error {
case "kernel":
errs = appendNotNil(errs, kernel())
default:
fmt.Printf("Unrecognized option %s", c)
fmt.Printf("Unrecognized option %s\n", c)
errs = append(errs, fmt.Errorf("Unrecognized option %s", c))
}
}