summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2016-11-16 07:04:51 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-30 09:16:23 -0200
commit0a79ef333dfa7f25abc2eab10f3a11bbdf9a9f17 (patch)
treeb1a224d23c11da2ee96de35a4bbfa440f1c1a556 /drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
parent3605163d98dbcd37e5d6f51c4982d7da77bdcba9 (diff)
downloadblackbird-obmc-linux-0a79ef333dfa7f25abc2eab10f3a11bbdf9a9f17.tar.gz
blackbird-obmc-linux-0a79ef333dfa7f25abc2eab10f3a11bbdf9a9f17.zip
[media] s5p-mfc: Use printk_ratelimited for reporting ioctl errors
Some applications don't check error codes from QBUF/DQBUF ioctls, so don't spam kernel log with errors if they fall into endless loop trying to queue next buffer after a failure. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/s5p-mfc/s5p_mfc_debug.h')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h b/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
index 5936923c631c..1936a5b868f5 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
@@ -39,6 +39,12 @@ extern int mfc_debug_level;
__func__, __LINE__, ##args); \
} while (0)
+#define mfc_err_limited(fmt, args...) \
+ do { \
+ printk_ratelimited(KERN_ERR "%s:%d: " fmt, \
+ __func__, __LINE__, ##args); \
+ } while (0)
+
#define mfc_info(fmt, args...) \
do { \
printk(KERN_INFO "%s:%d: " fmt, \
OpenPOWER on IntegriCloud