-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
drivers: can: shell: use shell_fprintf_normal
instead of shell_fprintf
#77165
drivers: can: shell: use shell_fprintf_normal
instead of shell_fprintf
#77165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems wrong to call the _impl function directly. This is just a simple test, the overhead of calling the non-impl function does not matter.
What is the motivation for changing this?
If the condition is to avoid calling
The short variants The motivation for this change stems from the discussion in PR #74652, which led to PR #75340. |
I think that would make for a better naming convention. In Zephyr, |
Thank you for your feedback. I may propose a revision to the naming convention in a separate PR and will update this PR accordingly afterward. WDYT? |
Sounds good. Thanks! |
Please rebase. |
…intf` Due to the introduction of `shell_xxx_impl` wrapper functions in PR zephyrproject-rtos#75340 and rename to `shell_fprintf_xxx` in PR zephyrproject-rtos#77192 we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
eb6c0ce
to
ef7ed1c
Compare
shell_print_impl
instead of shell_fprintf
shell_fprintf_normal
instead of shell_fprintf
Addressed it. 👍 |
Due to the introduction of
shell_xxx_impl
wrapper functions in PR #75340 and rename toshell_fprintf_xxx
in PR #77192 we can minimize caller overhead by eliminating directcolor
parameter passing.