LinuxKPI: add pr_err_once

Reviewed by:	hselasky, emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D30672
This commit is contained in:
Greg V 2021-06-07 10:30:18 -04:00 committed by Ed Maste
parent 35b8fd0b69
commit 05c2d94a08

View File

@ -251,6 +251,8 @@ extern int linuxkpi_debug;
log(LOG_CRIT, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_err(fmt, ...) \
log(LOG_ERR, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_err_once(fmt, ...) \
log_once(LOG_ERR, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_warning(fmt, ...) \
log(LOG_WARNING, pr_fmt(fmt), ##__VA_ARGS__)
#define pr_warn(...) \