lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 16 Dec 2013 12:06:44 -0500 From: Neil Horman <nhorman@...driver.com> To: linux-sctp@...r.kernel.org Cc: Neil Horman <nhorman@...driver.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, "David S. Miller" <davem@...emloft.net>, linux-kernel@...r.kernel.org Subject: [PATCH v2 1/2] printk: Add a pr_warn_deprecated macro sctp has several points in its setsockopt path in which it issues deprecation warnings. It seems like it might be handy to macrotize such a warning so other subsystems can use it easily Signed-off-by: Neil Horman <nhorman@...driver.com> CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org> CC: "David S. Miller" <davem@...emloft.net> CC: linux-kernel@...r.kernel.org --- include/linux/printk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/printk.h b/include/linux/printk.h index 6949258..2e043b3 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -336,6 +336,9 @@ extern asmlinkage void dump_stack(void) __cold; printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) /* no pr_cont_ratelimited, don't do that... */ +#define pr_warn_deprecated(fmt, ...) \ + pr_warn_ratelimited("Deprecated: " fmt, ##__VA_ARGS__) + #if defined(DEBUG) #define pr_devel_ratelimited(fmt, ...) \ printk_ratelimited(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists