From 04dc4ca721472f31657bee75ba009528067a6208 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 20 Jun 2022 14:56:43 -0700 Subject: fix(tools/ipconverter): add missing new lines to print statements Change-Id: I2dffe70dae5ef287c49d3504f9db438661adc16b Reviewed-on: https://cl.fcuny.net/c/world/+/465 Tested-by: CI Reviewed-by: Franck Cuny --- tools/ipconverter/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ipconverter/main.go b/tools/ipconverter/main.go index e0893a1..42baf7c 100644 --- a/tools/ipconverter/main.go +++ b/tools/ipconverter/main.go @@ -23,7 +23,7 @@ func main() { for _, ip := range os.Args[2:] { r, err := IPtoInt(ip) if err != nil { - fmt.Fprintf(os.Stderr, "failed to parse %s to an int: %s", ip, err) + fmt.Fprintf(os.Stderr, "failed to parse %s to an int: %s\n", ip, err) continue } fmt.Printf("%s\t%d\n", ip, r) @@ -32,13 +32,13 @@ func main() { for _, ip := range os.Args[2:] { r, err := IPtoN(ip) if err != nil { - fmt.Fprintf(os.Stderr, "failed to parse %s to an addresse IP: %s", ip, err) + fmt.Fprintf(os.Stderr, "failed to parse %s to an addresse IP: %s\n", ip, err) continue } - fmt.Printf("%s\t%s", ip, r) + fmt.Printf("%s\t%s\n", ip, r) } default: - fmt.Printf("`%s' is not a supported command", cmd) + fmt.Fprintf(os.Stderr, "`%s' is not a supported command\n", cmd) os.Exit(1) } } -- cgit 1.4.1