Author: hselasky
Date: Tue Mar 13 16:29:02 2018
New Revision: 330860
URL: https://svnweb.freebsd.org/changeset/base/330860

Log:
  MFC r330394:
  Implement pr_err_ratelimited() function macro in the LinuxKPI.
  
  Submitted by: Johannes Lundberg <johal...@gmail.com>
  Sponsored by: Mellanox Technologies
  Sponsored by: Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/printk.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/printk.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/printk.h Tue Mar 13 
16:28:04 2018        (r330859)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/printk.h Tue Mar 13 
16:29:02 2018        (r330860)
@@ -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_ */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to