aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-ioctl.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-06-21 21:37:12 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:17:16 -0400
commitd1afe4250a0aecf7ee92fa3d563a2f2aabf6cc0b (patch)
treec35e35816d907453802225013a74bcad2cb0bc77 /drivers/media/video/v4l2-ioctl.c
parentb7f2cef0c80c3ac29c13d2f4fc31691f2bd75f05 (diff)
V4L/DVB (12124): v4l2-ioctl: better output debug messages for VIDIOC_ENUM_FRAMESIZES
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
-rw-r--r--drivers/media/video/v4l2-ioctl.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index f2afc4e08379..aa8f66c63364 100644
--- a/drivers/media/video/v4l2-ioctl.c
+++ b/drivers/media/video/v4l2-ioctl.c
@@ -1726,24 +1726,29 @@ static long __video_do_ioctl(struct file *file,
1726 1726
1727 ret = ops->vidioc_enum_framesizes(file, fh, p); 1727 ret = ops->vidioc_enum_framesizes(file, fh, p);
1728 dbgarg(cmd, 1728 dbgarg(cmd,
1729 "index=%d, pixelformat=%d, type=%d ", 1729 "index=%d, pixelformat=%c%c%c%c, type=%d ",
1730 p->index, p->pixel_format, p->type); 1730 p->index,
1731 (p->pixel_format & 0xff),
1732 (p->pixel_format >> 8) & 0xff,
1733 (p->pixel_format >> 16) & 0xff,
1734 (p->pixel_format >> 24) & 0xff,
1735 p->type);
1731 switch (p->type) { 1736 switch (p->type) {
1732 case V4L2_FRMSIZE_TYPE_DISCRETE: 1737 case V4L2_FRMSIZE_TYPE_DISCRETE:
1733 dbgarg2("width = %d, height=%d\n", 1738 printk("width = %d, height=%d\n",
1734 p->discrete.width, p->discrete.height); 1739 p->discrete.width, p->discrete.height);
1735 break; 1740 break;
1736 case V4L2_FRMSIZE_TYPE_STEPWISE: 1741 case V4L2_FRMSIZE_TYPE_STEPWISE:
1737 dbgarg2("min %dx%d, max %dx%d, step %dx%d\n", 1742 printk("min %dx%d, max %dx%d, step %dx%d\n",
1738 p->stepwise.min_width, p->stepwise.min_height, 1743 p->stepwise.min_width, p->stepwise.min_height,
1739 p->stepwise.step_width, p->stepwise.step_height, 1744 p->stepwise.step_width, p->stepwise.step_height,
1740 p->stepwise.max_width, p->stepwise.max_height); 1745 p->stepwise.max_width, p->stepwise.max_height);
1741 break; 1746 break;
1742 case V4L2_FRMSIZE_TYPE_CONTINUOUS: 1747 case V4L2_FRMSIZE_TYPE_CONTINUOUS:
1743 dbgarg2("continuous\n"); 1748 printk("continuous\n");
1744 break; 1749 break;
1745 default: 1750 default:
1746 dbgarg2("- Unknown type!\n"); 1751 printk("- Unknown type!\n");
1747 } 1752 }
1748 1753
1749 break; 1754 break;