Since putchar() is only called by printf() (as opposed to the lower-
level serial_putc()), we can have it nicely format the output by
adding \r when \n is printed.
To get the old behavior back, call serial_putc() directly.
This fixes gcc's optimization when calling:
printf("\n")
As this will get silently turned into a call to putchar('\n')
Signed-off-by: Sean Cross <xobs@kosagi.com>
gcc will automatically use these functions for certain operations. Don't
punt and use printf(), instead call serial_putc and serial_puts.
Signed-off-by: Sean Cross <xobs@kosagi.com>