Skip to content

Commit

Permalink
Add missing guard around debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
lisanna-dettwyler committed Sep 19, 2024
1 parent b7d8cdd commit 3ae1f26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/loader/ze_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,10 @@ namespace loader
}
}
if(allDrivers.size()==0){
std::string message = "0 Drivers Discovered";
debug_trace_message(message, "");
if (debugTraceEnabled) {
std::string message = "0 Drivers Discovered";
debug_trace_message(message, "");
}
zel_logger->log_error("0 Drivers Discovered");
return ZE_RESULT_ERROR_UNINITIALIZED;
}
Expand Down

0 comments on commit 3ae1f26

Please sign in to comment.