dahdi: Define pr_xxx macros if not already defined.
The pr_ macros are the recommended way for subsystems to print messages but not all kernel versions DAHDI support has them defined. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Michael Spiceland <mspiceland@digium.com> Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10226 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
ae2785e0e7
commit
4231523c2f
@ -1461,6 +1461,26 @@ struct mutex {
|
|||||||
#define chan_err(chan, fmt, ...) chan_printk(ERR, "", chan, fmt, \
|
#define chan_err(chan, fmt, ...) chan_printk(ERR, "", chan, fmt, \
|
||||||
## __VA_ARGS__)
|
## __VA_ARGS__)
|
||||||
|
|
||||||
|
#ifndef pr_err
|
||||||
|
#define pr_err(fmt, ...) \
|
||||||
|
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
#ifndef pr_warning
|
||||||
|
#define pr_warning(fmt, ...) \
|
||||||
|
printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
#ifndef pr_warn
|
||||||
|
#define pr_warn pr_warning
|
||||||
|
#endif
|
||||||
|
#ifndef pr_notice
|
||||||
|
#define pr_notice(fmt, ...) \
|
||||||
|
printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
#ifndef pr_info
|
||||||
|
#define pr_info(fmt, ...) \
|
||||||
|
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The dbg_* ones use a magical variable 'debug' and the user should be
|
/* The dbg_* ones use a magical variable 'debug' and the user should be
|
||||||
* aware of that.
|
* aware of that.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user