aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2021-06-07 14:30:18 +0000
committerEd Maste <emaste@FreeBSD.org>2021-06-14 16:07:39 +0000
commit626ecbc91b3983e0a78c41164943ef0daba7d20f (patch)
treeb4c79d9adc005708e51301c0d68ec1547b3a5b5b
parentbd1139898643dd54529c464e6ff66011d6388b3e (diff)
downloadsrc-626ecbc91b3983e0a78c41164943ef0daba7d20f.tar.gz
src-626ecbc91b3983e0a78c41164943ef0daba7d20f.zip
LinuxKPI: add pr_err_once
Reviewed by: hselasky, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30672 (cherry picked from commit 05c2d94a081d5948560a01c26c7f432960cde606)
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index 4d0d417a736b..23239e42652b 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -231,6 +231,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(...) \