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

lib_manager: clean up logging #9767

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Jan 7, 2025

With Zephyr function names are included in log messages, no need to supply them in the format string. Also reduce verbosity of lib_manager_module_create() - it's called every time a loadable module is instantiated, no need to log this fact.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe fix the one trasted typo as well as this is modifying some of the strings...

@@ -116,7 +116,7 @@ static int lib_manager_auth_proc(const void *buffer_data,
ret = auth_api_result(&ext_lib->auth_ctx);

if (ret != AUTH_IMAGE_TRUSTED) {
tr_err(&lib_manager_tr, "lib_manager_auth_proc() Untrasted library!");
tr_err(&lib_manager_tr, "Untrasted library!");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untrusted?

With Zephyr function names are included in log messages, no need to
supply them in the format string. Also reduce verbosity of
lib_manager_module_create() - it's called every time a loadable
module is instantiated, no need to log this fact.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
@lyakh lyakh requested a review from softwarecki January 10, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants