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

forgotten IS_ENABLED(CONFIG_SHELL_LOG_BACKEND) condition #69555

Closed
lukas-fwdev opened this issue Feb 28, 2024 · 2 comments · Fixed by #69589
Closed

forgotten IS_ENABLED(CONFIG_SHELL_LOG_BACKEND) condition #69555

lukas-fwdev opened this issue Feb 28, 2024 · 2 comments · Fixed by #69589
Assignees
Labels
area: Shell Shell subsystem bug The issue is a bug, or the PR is fixing a bug

Comments

@lukas-fwdev
Copy link
Contributor

As described here: #69553

in the call of z_shell_log_backend_disable() inside shell_stop function (in zephyr/subsys/shell/shell.c) which was introduced with PR #67400 from @jakub-uC a condition surrounding the call is missing.

It needs to be if (IS_ENABLED(CONFIG_SHELL_LOG_BACKEND)) { z_shell_log_backend_disable(sh->log_backend); }

With the state of v3.6.0 release, building without the CONFIG_SHELL_LOG_BACKEND' is not possible.

@lukas-fwdev lukas-fwdev added the bug The issue is a bug, or the PR is fixing a bug label Feb 28, 2024
Copy link

Hi @lukas-fwdev! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@nashif nashif added the area: Shell Shell subsystem label Feb 28, 2024
jakub-uC added a commit to jakub-uC/zephyr that referenced this issue Feb 29, 2024
Added missing condition to check if log backend is configured before
calling the function: z_shell_log_backend_disable. Without this, in some
configurations, a compilation error appeared due to calling a
non-existent function.

Fixes: zephyrproject-rtos#69555

Signed-off-by: Jakub Rzeszutko <[email protected]>
@jakub-uC
Copy link
Contributor

@lukas-fwdev Thank you for your finding.

aescolar pushed a commit that referenced this issue Mar 4, 2024
Added missing condition to check if log backend is configured before
calling the function: z_shell_log_backend_disable. Without this, in some
configurations, a compilation error appeared due to calling a
non-existent function.

Fixes: #69555

Signed-off-by: Jakub Rzeszutko <[email protected]>
ashiroji pushed a commit to ashiroji/zephyr that referenced this issue Mar 19, 2024
Added missing condition to check if log backend is configured before
calling the function: z_shell_log_backend_disable. Without this, in some
configurations, a compilation error appeared due to calling a
non-existent function.

Fixes: zephyrproject-rtos#69555

Signed-off-by: Jakub Rzeszutko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shell Shell subsystem bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants