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

logging: log: add LOG_WRN_ONCE #70282

Merged

Commits on Mar 15, 2024

  1. logging: log: add LOG_WRN_ONCE

    Add an equivalent to the linux `WARN_ONCE` macro. This is intended for
    use when the developer should be notified of an event, but may occur a
    multitude of times in quick succession.
    
    Using `LOG_WRN` could result in either cluttered logs or recursive
    logging (i.e. in serial drivers).
    
    Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
    Jordan Yates committed Mar 15, 2024
    Copy the full SHA
    7aea513 View commit details
    Browse the repository at this point in the history
  2. tests: logging: log_api: test LOG_WRN_ONCE

    Add a test for the `LOG_WRN_ONCE` wrapper around `LOG_WRN`.
    
    Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
    Jordan Yates committed Mar 15, 2024
    Copy the full SHA
    67ebadd View commit details
    Browse the repository at this point in the history
  3. doc: logging: document LOG_WRN_ONCE

    Document the existence of `LOG_WRN_ONCE`.
    
    Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
    Jordan Yates committed Mar 15, 2024
    Copy the full SHA
    915657d View commit details
    Browse the repository at this point in the history