Replace snprintf to sprintf.

Use sprintf and vsprintf instead of snprintf and vsnprintf due to
issues with the arm-none-eabi toolchain.