[COMMON] media: smfc: fix reversed order in printing index and value
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 14 May 2015 13:19:29 +0000 (22:19 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:18 +0000 (20:22 +0300)
.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 <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c

index 26775a031a2c779b348e68472055fcba52834856..6857085ae9e2039fefe9930365aa37ffa13dbe0e 100644 (file)
@@ -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;
                        }
                }