diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-06-22 13:55:09 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-06-22 13:55:09 +0200 |
commit | b37f653a50cd90598a56f6c60c839ef62f5e8545 (patch) | |
tree | a4be5edca14679fcea59e9be42c37d647ff40161 /linux/include/media/v4l2-dev.h | |
parent | 22b7084ef828fc425dd6fdbbd663ec2b9ac72c2b (diff) | |
download | mediapointer-dvb-s2-b37f653a50cd90598a56f6c60c839ef62f5e8545.tar.gz mediapointer-dvb-s2-b37f653a50cd90598a56f6c60c839ef62f5e8545.tar.bz2 |
videodev: fix/improve ioctl debugging
From: Hans Verkuil <hverkuil@xs4all.nl>
Various ioctl debugging fixes and improvements:
- use %x rather than %d for control IDs and bitmask fields
- make two arrays const
- show the whole control array for the ext_ctrl ioctls
- print pix_fmt for V4L2_BUF_TYPE_VIDEO_OUTPUT
- show full type name rather than an integer
- fix CROPCAP debugging
- fix G/S_TUNER debugging
- show error code in case of an error
- other small cleanups
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-dev.h')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index dff99a024..d1ca9664e 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -65,8 +65,8 @@ enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global); int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority *local); /* names for fancy debug output */ -extern char *v4l2_field_names[]; -extern char *v4l2_type_names[]; +extern const char *v4l2_field_names[]; +extern const char *v4l2_type_names[]; /* Compatibility layer interface -- v4l1-compat module */ typedef int (*v4l2_kioctl)(struct inode *inode, struct file *file, |