diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2008-11-17 16:32:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:36 -0500 |
commit | 308bb52c192cc1bad3c90c82dbd90e7fff176caa (patch) | |
tree | f4b8be0508ec167432179168fe42b3974b3f42df /drivers/media/video/uvc | |
parent | 23867b2511140ae5693587d2b15badbcc632e3cc (diff) |
V4L/DVB (9662): uvcvideo: Fix printk badness when printing ioctl names
Add a trailing newline character after calling v4l_printk_ioctl() to avoid
messing the kernel log up and merge the uvc_v4l2_ioctl message with the ioctl
name.
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 01b48a87a9b9..7b1c1363583c 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -464,9 +464,6 @@ static int uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
464 | struct uvc_fh *handle = (struct uvc_fh *)file->private_data; | 464 | struct uvc_fh *handle = (struct uvc_fh *)file->private_data; |
465 | int ret = 0; | 465 | int ret = 0; |
466 | 466 | ||
467 | if (uvc_trace_param & UVC_TRACE_IOCTL) | ||
468 | v4l_printk_ioctl(cmd); | ||
469 | |||
470 | switch (cmd) { | 467 | switch (cmd) { |
471 | /* Query capabilities */ | 468 | /* Query capabilities */ |
472 | case VIDIOC_QUERYCAP: | 469 | case VIDIOC_QUERYCAP: |
@@ -983,7 +980,12 @@ static int uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
983 | static int uvc_v4l2_ioctl(struct inode *inode, struct file *file, | 980 | static int uvc_v4l2_ioctl(struct inode *inode, struct file *file, |
984 | unsigned int cmd, unsigned long arg) | 981 | unsigned int cmd, unsigned long arg) |
985 | { | 982 | { |
986 | uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_ioctl\n"); | 983 | if (uvc_trace_param & UVC_TRACE_IOCTL) { |
984 | uvc_printk(KERN_DEBUG, "uvc_v4l2_ioctl("); | ||
985 | v4l_printk_ioctl(cmd); | ||
986 | printk(")\n"); | ||
987 | } | ||
988 | |||
987 | return video_usercopy(file, cmd, arg, uvc_v4l2_do_ioctl); | 989 | return video_usercopy(file, cmd, arg, uvc_v4l2_do_ioctl); |
988 | } | 990 | } |
989 | 991 | ||