Use fmt.printf() to end with a newline

update pull request

update pull request

update pull request
k3s-v1.15.3
aaa 2019-04-10 05:54:40 -04:00
parent ed2bdd53dc
commit 433f86c6a7
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))
}
}