Fixed crash issue in RawSerial::printf for uARM

Fixed crash issue in RawSerial::printf() function for microlib platforms
since microlib doesn't fully support C99 functions such as vsnprintf().