From 294b2b9a135917cfd8d9597a75d7082a7fc34d49 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Thu, 14 May 2015 22:19:29 +0900 Subject: [PATCH] [COMMON] media: smfc: fix reversed order in printing index and value .buf_prepare() shows "Too small bytes_used[11985408]=0..." if bytes_used in v4l2_buffer is smaller than the required buffer size according to the image format configured with s_fmt. But the value in the bracket should be the plane index and the value after equal sign should be the value stored in .bytes_used. Change-Id: I4697c5e8474db2b4291ac0a41dd928899c0cc183 Signed-off-by: Cho KyongHo --- drivers/media/platform/exynos/smfc/smfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 26775a031a2c..6857085ae9e2 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -399,8 +399,8 @@ static int smfc_vb2_buf_prepare(struct vb2_buffer *vb) planebytes = (payload * ctx->img_fmt->bpp_buf[i]) / 8; if (vb2_get_plane_payload(vb, i) < planebytes) { dev_err(ctx->smfc->dev, - "Too small bytes_used[%lu]=%u (req.:%lu)\n", - vb2_get_plane_payload(vb, i), i, planebytes); + "Too small bytes_used[%u]=%lu (req.:%lu)\n", + i, vb2_get_plane_payload(vb, i), planebytes); return -EINVAL; } } -- 2.20.1