all: Various debug logging improvements

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4529
This commit is contained in:
Simon Frei
2017-11-22 08:05:27 +00:00
committed by Jakob Borg
parent 6daa766fde
commit ce29d3a574
5 changed files with 8 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ func (l fileList) String() string {
var b bytes.Buffer
b.WriteString("[]protocol.FileList{\n")
for _, f := range l {
fmt.Fprintf(&b, " %q: #%d, %d bytes, %d blocks, perms=%o\n", f.Name, f.Version, f.Size, len(f.Blocks), f.Permissions)
fmt.Fprintf(&b, " %q: #%v, %d bytes, %d blocks, perms=%o\n", f.Name, f.Version, f.Size, len(f.Blocks), f.Permissions)
}
b.WriteString("}")
return b.String()