You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/07/09 08:32:31 UTC
(nuttx-apps) 04/04: nxcodec: update log information
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit ae9f4e22315e606edc7e2f7db700311facb964e4
Author: shizhenghui <sh...@xiaomi.com>
AuthorDate: Fri Jul 5 15:32:39 2024 +0800
nxcodec: update log information
Signed-off-by: shizhenghui <sh...@xiaomi.com>
---
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;
}