diff options
Diffstat (limited to 'test/v4l2-ctl.cpp')
-rw-r--r-- | test/v4l2-ctl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/v4l2-ctl.cpp b/test/v4l2-ctl.cpp index 9604dcc96..6e044e563 100644 --- a/test/v4l2-ctl.cpp +++ b/test/v4l2-ctl.cpp @@ -599,6 +599,7 @@ static int doioctl(int fd, int request, void *parm, const char *name) if (!option_verbose) return ioctl(fd, request, parm); retVal = ioctl(fd, request, parm); + printf("%s: ", name); if (retVal < 0) printf("failed: %s\n", strerror(errno)); else @@ -673,7 +674,7 @@ int main(int argc, char **argv) /* command args */ char ch, *device = strdup("/dev/video0"); /* -d device */ struct v4l2_format vfmt; /* set_format/get_format */ - struct v4l2_tuner tuner; /* set_tuner/get_tuner */ + struct v4l2_tuner tuner = { 0 };/* set_tuner/get_tuner */ struct v4l2_capability vcap; /* list_cap */ struct v4l2_input vin; /* list_inputs */ struct v4l2_output vout; /* list_outputs */ |