From ae9f4e22315e606edc7e2f7db700311facb964e4 Mon Sep 17 00:00:00 2001 From: shizhenghui Date: Fri, 5 Jul 2024 15:32:39 +0800 Subject: [PATCH] nxcodec: update log information Signed-off-by: shizhenghui --- system/nxcodec/nxcodec.c | 2 +- system/nxcodec/nxcodec_context.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/system/nxcodec/nxcodec.c b/system/nxcodec/nxcodec.c index d6a99e4de..b808b63cf 100644 --- a/system/nxcodec/nxcodec.c +++ b/system/nxcodec/nxcodec.c @@ -133,7 +133,7 @@ int nxcodec_init(FAR nxcodec_t *codec) codec->output.fd = open(codec->output.filename, O_RDONLY); if (codec->output.fd < 0) { - printf("Failed to open input file %s \n", codec->output.filename); + printf("Failed to open output file %s \n", codec->output.filename); ret = -errno; goto err0; } diff --git a/system/nxcodec/nxcodec_context.c b/system/nxcodec/nxcodec_context.c index 16514d94a..d9c3b793d 100644 --- a/system/nxcodec/nxcodec_context.c +++ b/system/nxcodec/nxcodec_context.c @@ -67,7 +67,9 @@ nxcodec_context_dequeue_buf(FAR nxcodec_context_t *ctx) ret = ioctl(codec->fd, VIDIOC_DQBUF, &buf); if (ret < 0) { - printf("type: %d VIDIOC_DQBUF, err: %s\n", ctx->type, strerror(errno)); + printf("%s: VIDIOC_DQBUF - %s\n", + V4L2_TYPE_IS_OUTPUT(ctx->type) ? "output" : "capture", + strerror(errno)); return NULL; }