mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Lazy evaluate arguments of printDebugStrings(...) function
Change-Id: Ie44e109fd9235c5df32fb90b9e6fc6058e558a99 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
7d532f4f98
commit
55bd544402
@ -87,8 +87,8 @@ PreemptionMode PreemptionHelper::taskPreemptionMode(Device &device, const MultiD
|
||||
if (devMode > taskMode) {
|
||||
devMode = taskMode;
|
||||
}
|
||||
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stdout, "devMode = %d, taskMode = %d.\n",
|
||||
static_cast<int>(device.getPreemptionMode()), static_cast<int>(taskMode));
|
||||
PRINT_DEBUG_STRING(DebugManager.flags.PrintDebugMessages.get(), stdout, "devMode = %d, taskMode = %d.\n",
|
||||
static_cast<int>(device.getPreemptionMode()), static_cast<int>(taskMode));
|
||||
}
|
||||
return devMode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user