Staging: crystalhd: prefer pr_warn to printk(KERN_WARNING)
authorGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Sat, 8 Mar 2014 09:37:19 +0000 (11:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 03:58:57 +0000 (19:58 -0800)
Fix warning issue by using pr_err instead of printk

Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Reviewed-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/crystalhd/crystalhd_misc.h

index 77ab72a..b33c42e 100644 (file)
@@ -225,7 +225,7 @@ do {                                        \
 #define BCMLOG_ERR(fmt, args...)                               \
 do {                                                           \
        if (g_linklog_level & BCMLOG_ERROR)                     \
-               printk(KERN_ERR "*ERR*:%s:%d: "fmt,             \
+               pr_err("*ERR*:%s:%d: "fmt,                      \
                                __FILE__, __LINE__, ##args);    \
 } while (0)