This commit is contained in:
Matt Joiner 2015-05-15 08:41:42 +10:00
parent 0d13293d71
commit 0863f8ba2c
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ func TestParseMagnetURI(t *testing.T) {
// Checking if the magnet instance struct is built correctly from parsing
m, err = ParseMagnetURI(exampleMagnetURI)
if err != nil || !reflect.DeepEqual(exampleMagnet, m) {
t.Errorf("ParseMagnetURI(%e) returned %v, expected %v", uri, m, exampleMagnet)
t.Errorf("ParseMagnetURI(%s) returned %v, expected %v", uri, m, exampleMagnet)
}
// empty string URI case

View File

@ -421,7 +421,7 @@ func (t *torrent) writeStatus(w io.Writer) {
}
fmt.Fprintf(w, "Urgent:")
for req := range t.urgent {
fmt.Fprintf(w, " %s", req)
fmt.Fprintf(w, " %v", req)
}
fmt.Fprintln(w)
fmt.Fprintf(w, "Trackers: ")