Move printf functionality into UART base class for code size