]> git.ipfire.org Git - thirdparty/systemd.git/commit
log: add log_once() and log_once_errno() macros
authorDan Streetman <ddstreet@canonical.com>
Wed, 19 May 2021 14:22:21 +0000 (10:22 -0400)
committerDan Streetman <ddstreet@canonical.com>
Thu, 20 May 2021 19:39:15 +0000 (15:39 -0400)
commit264f0afe0d200fcc64647eed417f0f2b293224a7
treee8d3980cd687b71759fb3a843b57cb0a09d94fc3
parentea42da38258ee182201ecc6c9afb18a9ea46021c
log: add log_once() and log_once_errno() macros

These macros will log a message at the specified level only the first time
they are called. On all later calls, if the specified level is debug, the
logs will be suppressed; otherwise the message will be logged at debug.
src/basic/log.h