dahdi: Define pf_fmt() globally in kernel.h
Normally the board drivers should define this, but if they do not we will provide a suitable default. This allows compilation with vanilla Linux 2.6.18. Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
@@ -1592,6 +1592,10 @@ struct mutex {
|
||||
#define chan_err(chan, fmt, ...) chan_printk(ERR, "", chan, fmt, \
|
||||
## __VA_ARGS__)
|
||||
|
||||
#ifndef pr_fmt
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
#endif
|
||||
|
||||
#ifndef pr_err
|
||||
#define pr_err(fmt, ...) \
|
||||
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user