@@ -23,7 +23,7 @@ extern int debug;
#define mfc_debug(level, fmt, args...) \
do { \
if (debug >= level) \
- printk(KERN_DEBUG "%s:%d: " fmt, \
+ pr_debug("%s:%d: " fmt, \
__func__, __LINE__, ##args); \
} while (0)
#else
@@ -35,13 +35,13 @@ extern int debug;
#define mfc_err(fmt, args...) \
do { \
- printk(KERN_ERR "%s:%d: " fmt, \
+ pr_err("%s:%d: " fmt, \
__func__, __LINE__, ##args); \
} while (0)
#define mfc_info(fmt, args...) \
do { \
- printk(KERN_INFO "%s:%d: " fmt, \
+ pr_info("%s:%d: " fmt, \
__func__, __LINE__, ##args); \
} while (0)
@@ -12,6 +12,8 @@
* published by the Free Software Foundation.
*/
+#define pr_fmt(fmt) "s5p-mfc: " fmt
+
#include "regs-mfc.h"
#include "s5p_mfc_cmd.h"
#include "s5p_mfc_common.h"
@@ -187,8 +189,7 @@ int s5p_mfc_alloc_codec_buffers(struct s5p_mfc_ctx *ctx)
dev->alloc_ctx[MFC_BANK1_ALLOC_CTX], ctx->bank1_size);
if (IS_ERR(ctx->bank1_buf)) {
ctx->bank1_buf = NULL;
- printk(KERN_ERR
- "Buf alloc for decoding failed (port A)\n");
+ pr_err("Buf alloc for decoding failed (port A)\n");
return -ENOMEM;
}
ctx->bank1_phys = s5p_mfc_mem_cookie(
Replace printk with pr_* functions to silence checkpatch warnings. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/media/video/s5p-mfc/s5p_mfc_debug.h | 6 +++--- drivers/media/video/s5p-mfc/s5p_mfc_opr.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-)