only for #ifdef __KERNEL__ codepath Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> --- net/netfilter/nf_conntrack_h323_asn1.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/netfilter/nf_conntrack_h323_asn1.c b/net/netfilter/nf_conntrack_h323_asn1.c index 8678823..1134520 100644 --- a/net/netfilter/nf_conntrack_h323_asn1.c +++ b/net/netfilter/nf_conntrack_h323_asn1.c @@ -11,6 +11,7 @@ ****************************************************************************/ #ifdef __KERNEL__ +#define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__ #include <linux/kernel.h> #else #include <stdio.h> @@ -26,7 +27,7 @@ #define TAB_SIZE 4 #define IFTHEN(cond, act) if(cond){act;} #ifdef __KERNEL__ -#define PRINT printk +#define PRINT pr_info #else #define PRINT printf #endif -- 1.6.3.1.10.g659a0.dirty -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html