diff options
author | hselasky <hselasky@FreeBSD.org> | 2018-03-13 16:29:02 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2018-03-13 16:29:02 +0000 |
commit | e3d22e74fa1290a7c69cf50f58ae4b10c9f6285b (patch) | |
tree | c26f35cb1f580ace73d8f05ed78d68f31461a175 /sys/compat | |
parent | d3457ca3d70913e15c223cf1c6cb213b0ef1a568 (diff) | |
download | FreeBSD-src-e3d22e74fa1290a7c69cf50f58ae4b10c9f6285b.zip FreeBSD-src-e3d22e74fa1290a7c69cf50f58ae4b10c9f6285b.tar.gz |
MFC r330394:
Implement pr_err_ratelimited() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com>
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/printk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/printk.h b/sys/compat/linuxkpi/common/include/linux/printk.h index 6e8e3da..c98a50e 100644 --- a/sys/compat/linuxkpi/common/include/linux/printk.h +++ b/sys/compat/linuxkpi/common/include/linux/printk.h @@ -118,4 +118,7 @@ print_hex_dump_bytes(const char *prefix_str, const int prefix_type, __retval; \ }) +#define pr_err_ratelimited(fmt, ...) \ + printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) + #endif /* _LINUX_PRINTK_H_ */ |