Skip to content

kernel/os: Update os_assert_cb to match assert_func #3349

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

andrzej-kaczmarek
Copy link
Contributor

This updates os_assert_cb prototype to match assert_func. This allows to get proper assert information in callback e.g. for logging.

Note that this breaks API, but since updates in other projects are trivial I'd like to get this merged. A good example why this is useful is a blehci app which can use os_assert_cb to log asserts system-wide via HCI vs event: apache/mynewt-nimble#1930

kasjer
kasjer previously approved these changes Nov 26, 2024
@kasjer
Copy link
Contributor

kasjer commented Mar 26, 2025

os_assert_cb() is called in many more os_fault.c files

@kasjer kasjer dismissed their stale review March 26, 2025 10:40

Only one place is changed

This updates os_assert_cb prototype to match assert_func. This allows to
get proper assert information in callback e.g. for logging.
@andrzej-kaczmarek andrzej-kaczmarek merged commit a9db4b1 into apache:master Mar 26, 2025
20 checks passed
@andrzej-kaczmarek andrzej-kaczmarek deleted the os_assert_cb-fix branch March 26, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants