Skip to content

Commit

Permalink
Add missing guards around debug messages
Browse files Browse the repository at this point in the history
Closes #195

Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@intel.com>
  • Loading branch information
lisanna-dettwyler committed Sep 10, 2024
1 parent 895108f commit abdafea
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 @@ -340,7 +340,8 @@ namespace loader
loaderLibraryPath = readLevelZeroLoaderLibraryPath();
}
#endif
debug_trace_message("Using Loader Library Path: ", loaderLibraryPath);
if (debugTraceEnabled)
debug_trace_message("Using Loader Library Path: ", loaderLibraryPath);

// To allow for two different sets of drivers to be in use between sysman and core/tools, we use and store the drivers in two vectors.
// alldrivers stores all the drivers for cleanup when the library exits.
Expand Down Expand Up @@ -424,7 +425,8 @@ namespace loader
tracingLayerEnabled = true;
}
std::string tracingLayerLibraryPath = create_library_path(MAKE_LAYER_NAME( "ze_tracing_layer" ), loaderLibraryPath.c_str());
debug_trace_message("Tracing Layer Library Path: ", tracingLayerLibraryPath);
if (debugTraceEnabled)
debug_trace_message("Tracing Layer Library Path: ", tracingLayerLibraryPath);
tracingLayer = LOAD_DRIVER_LIBRARY( tracingLayerLibraryPath.c_str() );
if(tracingLayer)
{
Expand Down

0 comments on commit abdafea

Please sign in to comment.