diff options
Diffstat (limited to 'tools')
-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) } } |