.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>
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;
}
}