File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,8 @@ namespace loader
340
340
loaderLibraryPath = readLevelZeroLoaderLibraryPath ();
341
341
}
342
342
#endif
343
- debug_trace_message (" Using Loader Library Path: " , loaderLibraryPath);
343
+ if (debugTraceEnabled)
344
+ debug_trace_message (" Using Loader Library Path: " , loaderLibraryPath);
344
345
345
346
// 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.
346
347
// alldrivers stores all the drivers for cleanup when the library exits.
@@ -424,7 +425,8 @@ namespace loader
424
425
tracingLayerEnabled = true ;
425
426
}
426
427
std::string tracingLayerLibraryPath = create_library_path (MAKE_LAYER_NAME ( " ze_tracing_layer" ), loaderLibraryPath.c_str ());
427
- debug_trace_message (" Tracing Layer Library Path: " , tracingLayerLibraryPath);
428
+ if (debugTraceEnabled)
429
+ debug_trace_message (" Tracing Layer Library Path: " , tracingLayerLibraryPath);
428
430
tracingLayer = LOAD_DRIVER_LIBRARY ( tracingLayerLibraryPath.c_str () );
429
431
if (tracingLayer)
430
432
{
You can’t perform that action at this time.
0 commit comments