Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions samples/include/zello_log.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright (C) 2020 Intel Corporation
* Copyright (C) 2020-2026 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -760,7 +760,7 @@ std::string to_string(const ze_image_format_layout_t layout) {
}
}

ze_image_format_layout_t to_layout(const std::string layout) {
ze_image_format_layout_t to_layout(const std::string &layout) {
if (layout == "8") {
return ZE_IMAGE_FORMAT_LAYOUT_8;
} else if (layout == "16") {
Expand Down Expand Up @@ -840,7 +840,7 @@ std::string to_string(const ze_image_format_type_t type) {
}
}

ze_image_format_type_t to_format_type(const std::string format_type) {
ze_image_format_type_t to_format_type(const std::string &format_type) {
if (format_type == "UINT") {
return ZE_IMAGE_FORMAT_TYPE_UINT;
} else if (format_type == "SINT") {
Expand Down Expand Up @@ -890,7 +890,7 @@ std::string to_string(const ze_image_flag_t flag) {
return flags;
}

ze_image_flag_t to_flag(const std::string flag) {
ze_image_flag_t to_flag(const std::string &flag) {

// by default setting to READ
ze_image_flag_t image_flags = {};
Expand Down Expand Up @@ -925,7 +925,7 @@ std::string to_string(const ze_image_type_t type) {
}
}

ze_image_type_t to_image_type(const std::string type) {
ze_image_type_t to_image_type(const std::string &type) {
if (type == "1D") {
return ZE_IMAGE_TYPE_1D;
} else if (type == "2D") {
Expand Down
2 changes: 1 addition & 1 deletion scripts/templates/ze_loader_internal.h.mako
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace loader
std::vector<zel_component_version_t> compVersions;
const char *LOADER_COMP_NAME = "loader";

void debug_trace_message(std::string errorMessage, std::string errorValue);
void debug_trace_message(const std::string &errorMessage, const std::string &errorValue);
ze_result_t init();
ze_result_t init_driver(driver_t &driver, ze_init_flags_t flags, ze_init_driver_type_desc_t* desc);
void add_loader_version();
Expand Down
4 changes: 2 additions & 2 deletions source/lib/ze_lib.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
* Copyright (C) 2019-2025 Intel Corporation
* Copyright (C) 2019-2026 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -129,7 +129,7 @@ namespace ze_lib
}

//////////////////////////////////////////////////////////////////////////
__zedlllocal void debug_trace_message(std::string message, std::string result) {
__zedlllocal void debug_trace_message(const std::string &message, const std::string &result) {
if (debugTraceEnabled){
std::string debugTracePrefix = "ZE_LOADER_DEBUG_TRACE:";
std::cerr << debugTracePrefix << message << result << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion source/loader/ze_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace loader
///////////////////////////////////////////////////////////////////////////////
context_t *context;

void context_t::debug_trace_message(std::string message, std::string result) {
void context_t::debug_trace_message(const std::string &message, const std::string &result) {
if (debugTraceEnabled) {
std::cerr << "ZE_LOADER_DEBUG_TRACE:" << message << result << std::endl;
}
Expand Down
2 changes: 1 addition & 1 deletion source/loader/ze_loader_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace loader
std::vector<zel_component_version_t> compVersions;
const char *LOADER_COMP_NAME = "loader";

void debug_trace_message(std::string errorMessage, std::string errorValue);
void debug_trace_message(const std::string &errorMessage, const std::string &errorValue);
ze_result_t init();
ze_result_t init_driver(driver_t &driver, ze_init_flags_t flags, ze_init_driver_type_desc_t* desc);
void add_loader_version();
Expand Down
Loading