Lazy evaluate arguments of printDebugStrings(...) function

Change-Id: Ie44e109fd9235c5df32fb90b9e6fc6058e558a99
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2020-09-25 11:24:15 +02:00
committed by sys_ocldev
parent 7d532f4f98
commit 55bd544402
26 changed files with 88 additions and 84 deletions

View File

@@ -192,7 +192,7 @@ bool MetricsLibrary::load() {
}
if (contextCreateFunction == nullptr || contextDeleteFunction == nullptr) {
NEO::printDebugString(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr, "cannot load %s exported functions\n", MetricsLibrary::getFilename());
PRINT_DEBUG_STRING(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr, "cannot load %s exported functions\n", MetricsLibrary::getFilename());
return false;
}