Improve non default flags printing

Change-Id: I960f9db85f1686785152b7825953464a900b80d1
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2019-04-08 12:45:16 +02:00
committed by sys_ocldev
parent d6367f02aa
commit 60c376d391

View File

@@ -169,8 +169,8 @@ template <DebugFunctionalityLevel DebugLevel>
template <typename DataType>
void DebugSettingsManager<DebugLevel>::dumpNonDefaultFlag(const char *variableName, const DataType &variableValue, const DataType &defaultValue) {
if (variableValue != defaultValue) {
const char *variableStringValue = std::to_string(variableValue).c_str();
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stdout, "Non-default value of debug variable: %s = %s", variableName, variableStringValue);
const auto variableStringValue = std::to_string(variableValue);
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stdout, "Non-default value of debug variable: %s = %s\n", variableName, variableStringValue.c_str());
}
}