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
This commit is contained in:
parent
8961c48323
commit
ab7da72090
@ -118,4 +118,7 @@ print_hex_dump_bytes(const char *prefix_str, const int prefix_type,
|
|||||||
__retval; \
|
__retval; \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
#define pr_err_ratelimited(fmt, ...) \
|
||||||
|
printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
|
||||||
|
|
||||||
#endif /* _LINUX_PRINTK_H_ */
|
#endif /* _LINUX_PRINTK_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user