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>
Loading
Please sign in to comment