Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2021 16:10:11 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 626ecbc91b39 - stable/11 - LinuxKPI: add pr_err_once
Message-ID:  <202106141610.15EGABkb020637@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/11 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=626ecbc91b3983e0a78c41164943ef0daba7d20f

commit 626ecbc91b3983e0a78c41164943ef0daba7d20f
Author:     Greg V <greg@unrelenting.technology>
AuthorDate: 2021-06-07 14:30:18 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-06-14 16:07:39 +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 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(...) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106141610.15EGABkb020637>