Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing guards around debug messages #199

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading