Date: Sun, 4 Mar 2018 18:27:51 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330394 - head/sys/compat/linuxkpi/common/include/linux Message-ID: <201803041827.w24IRpQ8092607@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Sun Mar 4 18:27:50 2018 New Revision: 330394 URL: https://svnweb.freebsd.org/changeset/base/330394 Log: Implement pr_err_ratelimited() function macro in the LinuxKPI. MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks Modified: head/sys/compat/linuxkpi/common/include/linux/printk.h Modified: head/sys/compat/linuxkpi/common/include/linux/printk.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/linux/printk.h Sun Mar 4 18:21:21 2018 (r330393) +++ head/sys/compat/linuxkpi/common/include/linux/printk.h Sun Mar 4 18:27:50 2018 (r330394) @@ -118,4 +118,7 @@ print_hex_dump_bytes(const char *prefix_str, const int __retval; \ }) +#define pr_err_ratelimited(fmt, ...) \ + printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) + #endif /* _LINUX_PRINTK_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803041827.w24IRpQ8092607>