Skip to content

Commit ae9f4e2

Browse files
shizhenghuixiaoxiang781216
authored andcommitted
nxcodec: update log information
Signed-off-by: shizhenghui <[email protected]>
1 parent 69a56e7 commit ae9f4e2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

system/nxcodec/nxcodec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int nxcodec_init(FAR nxcodec_t *codec)
133133
codec->output.fd = open(codec->output.filename, O_RDONLY);
134134
if (codec->output.fd < 0)
135135
{
136-
printf("Failed to open input file %s \n", codec->output.filename);
136+
printf("Failed to open output file %s \n", codec->output.filename);
137137
ret = -errno;
138138
goto err0;
139139
}

system/nxcodec/nxcodec_context.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ nxcodec_context_dequeue_buf(FAR nxcodec_context_t *ctx)
6767
ret = ioctl(codec->fd, VIDIOC_DQBUF, &buf);
6868
if (ret < 0)
6969
{
70-
printf("type: %d VIDIOC_DQBUF, err: %s\n", ctx->type, strerror(errno));
70+
printf("%s: VIDIOC_DQBUF - %s\n",
71+
V4L2_TYPE_IS_OUTPUT(ctx->type) ? "output" : "capture",
72+
strerror(errno));
7173
return NULL;
7274
}
7375

0 commit comments

Comments
 (0)