diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-10-20 20:51:44 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-10-20 20:51:44 +0000 |
commit | 1df225349a35063c90eb5a3a28858bce31e9b62b (patch) | |
tree | 4bca528955ec8808fe9105160a7decb2505bfd79 /include | |
parent | 305d0a1cb1fabea0a004601148b9f17388ef6778 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 161c7a2..e2403c1 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1461,6 +1461,26 @@ struct mutex { #define chan_err(chan, fmt, ...) chan_printk(ERR, "", chan, fmt, \ ## __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 * aware of that. */ |