diff options
author | Franck Cuny <franck@fcuny.net> | 2022-06-20 14:56:43 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-20 14:57:41 -0700 |
commit | 04dc4ca721472f31657bee75ba009528067a6208 (patch) | |
tree | fd07c2dd62ab7329f09410ce62ab5659c397c2a8 /tools | |
parent | fix(tools/ipconverter): fail if number of arguments is insufficient (diff) | |
download | world-04dc4ca721472f31657bee75ba009528067a6208.tar.gz |
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 <franck@fcuny.net>
Diffstat (limited to '')
-rw-r--r-- | tools/ipconverter/main.go | 8 |
1 files 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) } } |