minor cleanup and addressed a sprintf format warning

4 jobs for 51-fix-cppcheck-detected-source-code-errors in 11 minutes and 14 seconds (queued for 13 seconds)