Fix some cppcheck warnings (format string vs argument mismatches)