POut should not have a newline
Juan Batiz-Benet committed
Aug 16, 2014 at 18:06 UTC
0fdc571554098c27f4a6f5f5f268dcc736ff850b
2 files changed
+3
-3
routing/kbucket/table.go
+1
-1
@@ -116,7 +116,7 @@ func copyPeersFromList(target ID, peerArr peerSorterArr, peerList *list.List) pe
116
}
117
peerArr = append(peerArr, &pd)
118
if e == nil {
119
- u.POut("list element was nil.")
119
+ u.POut("list element was nil.\n")
120
return peerArr
121
}
122
}
util/util.go
+2
-2
@@ -55,12 +55,12 @@ func TildeExpansion(filename string) (string, error) {
55
56
// PErr is a shorthand printing function to output to Stderr.
57
func PErr(format string, a ...interface{}) {
58
- fmt.Fprintf(os.Stderr, format+"\n", a...)
58
+ fmt.Fprintf(os.Stderr, format, a...)
59
}
60
61
// POut is a shorthand printing function to output to Stdout.
62
func POut(format string, a ...interface{}) {
63
- fmt.Fprintf(os.Stdout, format+"\n", a...)
63
+ fmt.Fprintf(os.Stdout, format, a...)
64
}
65
66
// DErr is a shorthand debug printing function to output to Stderr.