From c8b0d91972a91583e6104b276dfecdbf76c47442 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Sat, 5 Apr 2014 11:50:22 -0500 Subject: [PATCH] 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 --- include/dahdi/kernel.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index f2f9ec5..aed5286 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -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__)