From ffd7feb30afd18ef6b2c69e058d4f9f7c0b5c60b Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 28 Oct 2015 16:31:14 -0700 Subject: [PATCH] Adjust output. * Remove extraneous debug output. * If the start and end are swapped, print the message to standard error, not standard output. --- cmd/fragment/fragment.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/fragment/fragment.go b/cmd/fragment/fragment.go index 57fd2dd..4b43723 100644 --- a/cmd/fragment/fragment.go +++ b/cmd/fragment/fragment.go @@ -63,7 +63,7 @@ func main() { } if end < start { - fmt.Println("[!] end < start, swapping values") + fmt.Fprintln(os.Stderr, "[!] end < start, swapping values") tmp := end end = start start = tmp @@ -83,7 +83,6 @@ func main() { return false } - fmt.Println(start) fmtStr += "\n" for i := start; !endFunc(i); i++ { fmt.Printf(fmtStr, i, lines[i])