lpdump: refactor to use std::ostream

... so that the output stream / error stream can be
replaced with stringstream later.

Test: lpdump
Bug: 126233777
Change-Id: I837554b0289a5d669f0f89d35e7da1b79dd33b28
1 file changed