diff options
| author | David S. Miller <davem@davemloft.net> | 2013-12-31 13:59:21 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-12-31 13:59:21 -0500 |
| commit | 89ba52bd933898e8da78d4a3469dc23cb8acbecd (patch) | |
| tree | 0d2ece1a60e17bdcf6a39bc58e8412ddc0cc7d6a /include/linux | |
| parent | c76f2a2c4c348e2de94b7ba10fcd3640a35d04fa (diff) | |
| parent | 94f65193abbc07e4a4f3dbe3729ceb95c1493ea2 (diff) | |
Merge branch 'sctp_logspam'
Neil Horman says:
====================
sctp: Consolidate and ratelimit deprecation warnings
The SCTP protocol has several deprecation warnings in its setsockopt path that
can be triggered by unprivlidged users. Since these are not ratelimited, we can
spam the logs quite easily here. Since these are all deprecation warnings, and
that type of warning isn't uncommon in the rest of the kernel, lets make a
common pr_warn_deprecated macro to produce somewhat generalized ratelimited
deprecation warnings easily
====================
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/printk.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index 694925837a16..26fb95ce5080 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -88,6 +88,13 @@ struct va_format { #define HW_ERR "[Hardware Error]: " /* + * DEPRECATED + * Add this to a message whenever you want to warn user space about the use + * of a deprecated aspect of an API so they can stop using it + */ +#define DEPRECATED "[Deprecated]: " + +/* * Dummy printk for disabled debugging statements to use whilst maintaining * gcc's format and side-effect checking. */ |
