Use println! instead if printfmt!

printfmt! got removed from rust.
Don't use Mem{Reader,Writer}.buf

The field became private in current rust.