Commit 7e97732d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Clean up bufferpool debug format.

parent 6aa2dbff
......@@ -63,10 +63,10 @@ func (me *BufferPoolImpl) String() string {
result := []string{}
for exp, bufs := range me.buffersBySize {
if len(bufs) > 0 {
result = append(result, fmt.Sprintf("%d=%d\n", exp, len(bufs)))
result = append(result, fmt.Sprintf("%d=%d", exp, len(bufs)))
}
}
return fmt.Sprintf("created: %v\noutstanding %v\n%s",
return fmt.Sprintf("created: %d, outstanding %d. Sizes: %s",
me.createdBuffers, len(me.outstandingBuffers),
strings.Join(result, ", "))
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment