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

bluetooth: honor log panic mode in monitor #76589

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

arbrauns
Copy link
Contributor

@arbrauns arbrauns commented Aug 1, 2024

Once panic mode is entered, the log write functions are called from an ISR, so must not try to acquire locks.

Thalley
Thalley previously approved these changes Aug 2, 2024
jhedberg
jhedberg previously approved these changes Aug 2, 2024
Comment on lines 55 to 57
#if defined(CONFIG_BT_DEBUG_MONITOR_RTT) || !defined(CONFIG_LOG_MODE_MINIMAL)
static bool panic_mode;
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given the use of it is only for CONFIG_BT_DEBUG_MONITOR_RTT then I suggest to move the declaration of the variable to the #if defined(CONFIG_BT_DEBUG_MONITOR_RTT) part on line 100.

subsys/bluetooth/host/monitor.c Show resolved Hide resolved
Once panic mode is entered, the log write functions are called from an ISR,
so must not try to acquire locks.

Signed-off-by: Armin Brauns <[email protected]>
Copy link

github-actions bot commented Oct 2, 2024

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Oct 2, 2024
@jhedberg jhedberg removed the Stale label Oct 2, 2024
@jhedberg jhedberg assigned alwa-nordic and unassigned jori-nordic Oct 2, 2024
@aescolar aescolar merged commit fa8d80a into zephyrproject-rtos:main Oct 2, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants