Skip to content

Commit

Permalink
printk: Add a DEPRECATED macro
Browse files Browse the repository at this point in the history
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@tuxdriver.com>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: "David S. Miller" <davem@davemloft.net>
CC: linux-kernel@vger.kernel.org
CC: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Neil Horman authored and David S. Miller committed Dec 31, 2013
1 parent c76f2a2 commit 0a9a8bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/printk.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,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.
Expand Down

0 comments on commit 0a9a8bf

Please sign in to comment.