mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Improve non default flags printing
Change-Id: I960f9db85f1686785152b7825953464a900b80d1 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
d6367f02aa
commit
60c376d391
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user