lpdump: refactor to use std::ostream am: b48d79fa91 am: d85c47a6d1
am: 68d75a8012

Change-Id: I4430953f14913c596510ca7b99e12e9a0ee37006