diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-23 12:05:22 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 07:05:13 +0200 |
commit | c18cb01ca139716a39f4fb92286b6096e8b3f968 (patch) | |
tree | f62cb4909578ee77ceab06f0f4946b29d41def84 /drivers/media/video | |
parent | V4L/DVB (4147): Drivers/media/video/pwc/: make code static (diff) | |
download | linux-c18cb01ca139716a39f4fb92286b6096e8b3f968.tar.xz linux-c18cb01ca139716a39f4fb92286b6096e8b3f968.zip |
V4L/DVB (4148): Fix userbits debug prints
Previously, it were showing the pointer value, instead of
the setted bits.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/v4l2-common.c | 4 | ||||
-rw-r--r-- | drivers/media/video/videodev.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c index bffe48275eb0..2b2c0b3a16ad 100644 --- a/drivers/media/video/v4l2-common.c +++ b/drivers/media/video/v4l2-common.c @@ -486,9 +486,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) prt_names(p->memory,v4l2_memory_names), p->m.userptr); printk ("%s: timecode= %02d:%02d:%02d type=%d, " - "flags=0x%08x, frames=%d, userbits=0x%p\n", + "flags=0x%08x, frames=%d, userbits=0x%08x\n", s,tc->hours,tc->minutes,tc->seconds, - tc->type, tc->flags, tc->frames, tc->userbits); + tc->type, tc->flags, tc->frames, *(__u32 *) tc->userbits); break; } case VIDIOC_QUERYCAP: diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index 311149b80e9f..43152297e6d5 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c @@ -323,7 +323,7 @@ static void dbgbuf(unsigned int cmd, struct video_device *vfd, dbgarg2 ("timecode= %02d:%02d:%02d type=%d, " "flags=0x%08d, frames=%d, userbits=0x%08x\n", tc->hours,tc->minutes,tc->seconds, - tc->type, tc->flags, tc->frames, (__u32) tc->userbits); + tc->type, tc->flags, tc->frames, *(__u32 *) tc->userbits); } static inline void dbgrect(struct video_device *vfd, char *s, |