aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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;