Skip to content

Commit 610a01e

Browse files
committed
Minor clean up in output text for Liibrary Path
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
1 parent ac40905 commit 610a01e

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

source/lib/ze_lib.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@ namespace ze_lib
107107
loaderLibraryPath = readLevelZeroLoaderLibraryPath();
108108
}
109109
#endif
110-
if (debugTraceEnabled)
111-
debug_trace_message("Static Loader Using Loader Library Path: ", loaderLibraryPath);
110+
if (debugTraceEnabled) {
111+
if (loaderLibraryPath.empty())
112+
debug_trace_message("Static Loader Using Loader Library Path: ", "Not set");
113+
else
114+
debug_trace_message("Static Loader Using Loader Library Path: ", loaderLibraryPath);
115+
}
112116
std::string loaderFullLibraryPath = create_library_path(MAKE_LIBRARY_NAME( "ze_loader", L0_LOADER_VERSION), loaderLibraryPath.c_str());
113117
loader = LOAD_DRIVER_LIBRARY(loaderFullLibraryPath.c_str());
114118

source/loader/ze_loader.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,12 @@ namespace loader
643643
loaderLibraryPath = readLevelZeroLoaderLibraryPath();
644644
}
645645
#endif
646-
if (debugTraceEnabled)
647-
debug_trace_message("Using Loader Library Path: ", loaderLibraryPath);
646+
if (debugTraceEnabled) {
647+
if (loaderLibraryPath.empty())
648+
debug_trace_message("Using Loader Library Path: ", "Not set");
649+
else
650+
debug_trace_message("Using Loader Library Path: ", loaderLibraryPath);
651+
}
648652

649653
if (debugTraceEnabled && driverDDIPathDefault) {
650654
debug_trace_message("DDI Driver Extension Path is Enabled", "");

0 commit comments

Comments
 (0)