Sprintf unused variable fixes

Remove unused variables in Sprintf, to stop compiler warnings