summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-06-21 22:37:12 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-21 22:37:12 -0300
commit3f5baede21113b8adf1b40d403e19a1ced1b07b8 (patch)
tree1abbc6c15c1ce05550dee76a51fe1faef2f08fd3 /linux/drivers/media/video
parent3018a0199005774023d70460283f25cb1ee297ef (diff)
downloadmediapointer-dvb-s2-3f5baede21113b8adf1b40d403e19a1ced1b07b8.tar.gz
mediapointer-dvb-s2-3f5baede21113b8adf1b40d403e19a1ced1b07b8.tar.bz2
/v4l2-ioctl: better output debug messages for VIDIOC_ENUM_FRAMESIZES
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/v4l2-ioctl.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/linux/drivers/media/video/v4l2-ioctl.c b/linux/drivers/media/video/v4l2-ioctl.c
index 22b380dfd..625fe7698 100644
--- a/linux/drivers/media/video/v4l2-ioctl.c
+++ b/linux/drivers/media/video/v4l2-ioctl.c
@@ -1718,24 +1718,29 @@ static long __video_do_ioctl(struct file *file,
ret = ops->vidioc_enum_framesizes(file, fh, p);
dbgarg(cmd,
- "index=%d, pixelformat=%d, type=%d ",
- p->index, p->pixel_format, p->type);
+ "index=%d, pixelformat=%c%c%c%c, type=%d ",
+ p->index,
+ (p->pixel_format & 0xff),
+ (p->pixel_format >> 8) & 0xff,
+ (p->pixel_format >> 16) & 0xff,
+ (p->pixel_format >> 24) & 0xff,
+ p->type);
switch (p->type) {
case V4L2_FRMSIZE_TYPE_DISCRETE:
- dbgarg2("width = %d, height=%d\n",
+ printk("width = %d, height=%d\n",
p->discrete.width, p->discrete.height);
break;
case V4L2_FRMSIZE_TYPE_STEPWISE:
- dbgarg2("min %dx%d, max %dx%d, step %dx%d\n",
+ printk("min %dx%d, max %dx%d, step %dx%d\n",
p->stepwise.min_width, p->stepwise.min_height,
p->stepwise.step_width, p->stepwise.step_height,
p->stepwise.max_width, p->stepwise.max_height);
break;
case V4L2_FRMSIZE_TYPE_CONTINUOUS:
- dbgarg2("continuous\n");
+ printk("continuous\n");
break;
default:
- dbgarg2("- Unknown type!\n");
+ printk("- Unknown type!\n");
}
break;