Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161417
b: refs/heads/master
c: d33fbcb
h: refs/heads/master
i:
  161415: 7834003
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Sep 12, 2009
1 parent a906fea commit ffad9a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1afe4250a0aecf7ee92fa3d563a2f2aabf6cc0b
refs/heads/master: d33fbcbb21ba53358ba8a83765cfd1401e06d883
14 changes: 10 additions & 4 deletions trunk/drivers/media/video/v4l2-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
printk(KERN_DEBUG "%s: " fmt, vfd->name, ## arg);\
} while (0)

#define dbgarg3(fmt, arg...) \
do { \
if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) \
printk(KERN_CONT "%s: " fmt, vfd->name, ## arg);\
} while (0)

/* Zero out the end of the struct pointed to by p. Everthing after, but
* not including, the specified field is cleared. */
#define CLEAR_AFTER_FIELD(p, field) \
Expand Down Expand Up @@ -1735,20 +1741,20 @@ static long __video_do_ioctl(struct file *file,
p->type);
switch (p->type) {
case V4L2_FRMSIZE_TYPE_DISCRETE:
printk("width = %d, height=%d\n",
dbgarg3("width = %d, height=%d\n",
p->discrete.width, p->discrete.height);
break;
case V4L2_FRMSIZE_TYPE_STEPWISE:
printk("min %dx%d, max %dx%d, step %dx%d\n",
dbgarg3("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:
printk("continuous\n");
dbgarg3("continuous\n");
break;
default:
printk("- Unknown type!\n");
dbgarg3("- Unknown type!\n");
}

break;
Expand Down

0 comments on commit ffad9a4

Please sign in to comment.