提交 5245953e 编写于 作者: A Andrew Morton 提交者: Mauro Carvalho Chehab

V4L/DVB (3571): Printk warning fixes

On ppc64, u64 is `unsigned long'
drivers/media/video/v4l2-common.c: In function `v4l_printk_ioctl_arg':
drivers/media/video/v4l2-common.c:486: warning: cast from pointer to integer of different size
drivers/media/video/v4l2-common.c:580: warning: long long int format, v4l2_std_id arg (arg 8)
drivers/media/video/v4l2-common.c:625: warning: long long int format, v4l2_std_id arg (arg 8)
drivers/media/video/v4l2-common.c:693: warning: long long int format, v4l2_std_id arg (arg 4)
drivers/media/video/v4l2-common.c:910: warning: long long unsigned int format, long unsigned int a$
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 2ae15191
...@@ -481,9 +481,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) ...@@ -481,9 +481,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
prt_names(p->memory,v4l2_memory_names), prt_names(p->memory,v4l2_memory_names),
p->m.userptr); p->m.userptr);
printk ("%s: timecode= %02d:%02d:%02d type=%d, " printk ("%s: timecode= %02d:%02d:%02d type=%d, "
"flags=0x%08d, frames=%d, userbits=0x%08x\n", "flags=0x%08d, frames=%d, userbits=0x%p",
s,tc->hours,tc->minutes,tc->seconds, s,tc->hours,tc->minutes,tc->seconds,
tc->type, tc->flags, tc->frames, (__u32) tc->userbits); tc->type, tc->flags, tc->frames, tc->userbits);
break; break;
} }
case VIDIOC_QUERYCAP: case VIDIOC_QUERYCAP:
...@@ -574,9 +574,10 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) ...@@ -574,9 +574,10 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
{ {
struct v4l2_input *p=arg; struct v4l2_input *p=arg;
printk ("%s: index=%d, name=%s, type=%d, audioset=%d, " printk ("%s: index=%d, name=%s, type=%d, audioset=%d, "
"tuner=%d, std=%lld, status=%d\n", s, "tuner=%d, std=%Ld, status=%d\n", s,
p->index,p->name,p->type,p->audioset, p->index,p->name,p->type,p->audioset,
p->tuner,p->std, p->tuner,
(unsigned long long)p->std,
p->status); p->status);
break; break;
} }
...@@ -620,9 +621,10 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) ...@@ -620,9 +621,10 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
{ {
struct v4l2_output *p=arg; struct v4l2_output *p=arg;
printk ("%s: index=%d, name=%s,type=%d, audioset=%d, " printk ("%s: index=%d, name=%s,type=%d, audioset=%d, "
"modulator=%d, std=%lld\n", "modulator=%d, std=%Ld\n",
s,p->index,p->name,p->type,p->audioset, s,p->index,p->name,p->type,p->audioset,
p->modulator,p->std); p->modulator,
(unsigned long long)p->std);
break; break;
} }
case VIDIOC_QUERYCTRL: case VIDIOC_QUERYCTRL:
...@@ -686,8 +688,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) ...@@ -686,8 +688,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
case VIDIOC_ENUMSTD: case VIDIOC_ENUMSTD:
{ {
struct v4l2_standard *p=arg; struct v4l2_standard *p=arg;
printk ("%s: index=%d, id=%lld, name=%s, fps=%d/%d, framelines=%d\n", s, printk ("%s: index=%d, id=%Ld, name=%s, fps=%d/%d, "
p->index, p->id, p->name, "framelines=%d\n", s, p->index,
(unsigned long long)p->id, p->name,
p->frameperiod.numerator, p->frameperiod.numerator,
p->frameperiod.denominator, p->frameperiod.denominator,
p->framelines); p->framelines);
...@@ -907,7 +910,7 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) ...@@ -907,7 +910,7 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
{ {
v4l2_std_id *p=arg; v4l2_std_id *p=arg;
printk ("%s: value=%llu\n", s, *p); printk ("%s: value=%Lu\n", s, (unsigned long long)*p);
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册