Skip to content
Commit 4afd3357 authored by Jordan Yates's avatar Jordan Yates Committed by Fabio Baltieri
Browse files

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: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent 6608ff81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment