[PATCH 11/18] media: coda: Print size of encoded buff in other place
From: Sergey Khimich
Date: Fri Mar 14 2025 - 11:32:26 EST
From: Vladimir Yakovlev <vovchkir@xxxxxxxxx>
Print debug log containing size of encoded buff along with
other info of encoded buffer. This improves readability
of the log.
Co-developed-by: Sergey Khimich <serghox@xxxxxxxxx>
Signed-off-by: Sergey Khimich <serghox@xxxxxxxxx>
Signed-off-by: Vladimir Yakovlev <vovchkir@xxxxxxxxx>
---
drivers/media/platform/chips-media/coda/coda-bit.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/platform/chips-media/coda/coda-bit.c b/drivers/media/platform/chips-media/coda/coda-bit.c
index 05d62c7bc692..c323bc96b998 100644
--- a/drivers/media/platform/chips-media/coda/coda-bit.c
+++ b/drivers/media/platform/chips-media/coda/coda-bit.c
@@ -1665,7 +1665,6 @@ static void coda_finish_encode(struct coda_ctx *ctx)
vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr);
}
- coda_dbg(1, ctx, "frame size = %u\n", wr_ptr - start_ptr);
coda_read(dev, CODA_RET_ENC_PIC_SLICE_NUM);
val = coda_read(dev, CODA_RET_ENC_PIC_FLAG);
@@ -1696,9 +1695,9 @@ static void coda_finish_encode(struct coda_ctx *ctx)
if (ctx->gopcounter < 0)
ctx->gopcounter = ctx->params.gop_size - 1;
- coda_dbg(1, ctx, "job finished: encoded %c frame (%d)%s\n",
+ coda_dbg(1, ctx, "job finished: encoded %c frame (%d)%s size=%d\n",
coda_frame_type_char(dst_buf->flags), dst_buf->sequence,
- (dst_buf->flags & V4L2_BUF_FLAG_LAST) ? " (last)" : "");
+ (dst_buf->flags & V4L2_BUF_FLAG_LAST) ? " (last)" : "", wr_ptr - start_ptr);
}
static void coda_seq_end_work(struct work_struct *work)
--
2.30.2