Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
0fdc5715
Commit
0fdc5715
authored
10 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
POut should not have a newline
parent
e658ade6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
routing/kbucket/table.go
routing/kbucket/table.go
+1
-1
util/util.go
util/util.go
+2
-2
No files found.
routing/kbucket/table.go
View file @
0fdc5715
...
...
@@ -116,7 +116,7 @@ func copyPeersFromList(target ID, peerArr peerSorterArr, peerList *list.List) pe
}
peerArr
=
append
(
peerArr
,
&
pd
)
if
e
==
nil
{
u
.
POut
(
"list element was nil."
)
u
.
POut
(
"list element was nil.
\n
"
)
return
peerArr
}
}
...
...
This diff is collapsed.
Click to expand it.
util/util.go
View file @
0fdc5715
...
...
@@ -55,12 +55,12 @@ func TildeExpansion(filename string) (string, error) {
// PErr is a shorthand printing function to output to Stderr.
func
PErr
(
format
string
,
a
...
interface
{})
{
fmt
.
Fprintf
(
os
.
Stderr
,
format
+
"
\n
"
,
a
...
)
fmt
.
Fprintf
(
os
.
Stderr
,
format
,
a
...
)
}
// POut is a shorthand printing function to output to Stdout.
func
POut
(
format
string
,
a
...
interface
{})
{
fmt
.
Fprintf
(
os
.
Stdout
,
format
+
"
\n
"
,
a
...
)
fmt
.
Fprintf
(
os
.
Stdout
,
format
,
a
...
)
}
// DErr is a shorthand debug printing function to output to Stderr.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment