git: 4a3bd4277286 - stable/13 - LinuxKPI: add pr_err_once

Ed Maste emaste at FreeBSD.org
Mon Jun 14 16:07:21 UTC 2021


The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=4a3bd4277286909a5c20c3277c9c2f2d726a1113

commit 4a3bd4277286909a5c20c3277c9c2f2d726a1113
Author:     Greg V <greg at unrelenting.technology>
AuthorDate: 2021-06-07 14:30:18 +0000
Commit:     Ed Maste <emaste at FreeBSD.org>
CommitDate: 2021-06-14 16:06:09 +0000

    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)
---
 sys/compat/linuxkpi/common/include/linux/kernel.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index 6ee292940016..46b11d89652b 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -235,6 +235,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(...) \


More information about the dev-commits-src-all mailing list