aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-03-22 13:01:59 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-24 14:26:52 -0500
commit5245953e1893152662dad47c87fa88213d5d09a1 (patch)
treee97c1b7ef76f72f6918ac0f97f3f3710bb8815c6 /drivers/media
parent2ae151911e31e6a012a46431cc515cc251242573 (diff)
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: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/v4l2-common.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c
index 9b029e4dbfb7..1717663d3e51 100644
--- a/drivers/media/video/v4l2-common.c
+++ b/drivers/media/video/v4l2-common.c
@@ -481,9 +481,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
481 prt_names(p->memory,v4l2_memory_names), 481 prt_names(p->memory,v4l2_memory_names),
482 p->m.userptr); 482 p->m.userptr);
483 printk ("%s: timecode= %02d:%02d:%02d type=%d, " 483 printk ("%s: timecode= %02d:%02d:%02d type=%d, "
484 "flags=0x%08d, frames=%d, userbits=0x%08x\n", 484 "flags=0x%08d, frames=%d, userbits=0x%p",
485 s,tc->hours,tc->minutes,tc->seconds, 485 s,tc->hours,tc->minutes,tc->seconds,
486 tc->type, tc->flags, tc->frames, (__u32) tc->userbits); 486 tc->type, tc->flags, tc->frames, tc->userbits);
487 break; 487 break;
488 } 488 }
489 case VIDIOC_QUERYCAP: 489 case VIDIOC_QUERYCAP:
@@ -574,9 +574,10 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
574 { 574 {
575 struct v4l2_input *p=arg; 575 struct v4l2_input *p=arg;
576 printk ("%s: index=%d, name=%s, type=%d, audioset=%d, " 576 printk ("%s: index=%d, name=%s, type=%d, audioset=%d, "
577 "tuner=%d, std=%lld, status=%d\n", s, 577 "tuner=%d, std=%Ld, status=%d\n", s,
578 p->index,p->name,p->type,p->audioset, 578 p->index,p->name,p->type,p->audioset,
579 p->tuner,p->std, 579 p->tuner,
580 (unsigned long long)p->std,
580 p->status); 581 p->status);
581 break; 582 break;
582 } 583 }
@@ -620,9 +621,10 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
620 { 621 {
621 struct v4l2_output *p=arg; 622 struct v4l2_output *p=arg;
622 printk ("%s: index=%d, name=%s,type=%d, audioset=%d, " 623 printk ("%s: index=%d, name=%s,type=%d, audioset=%d, "
623 "modulator=%d, std=%lld\n", 624 "modulator=%d, std=%Ld\n",
624 s,p->index,p->name,p->type,p->audioset, 625 s,p->index,p->name,p->type,p->audioset,
625 p->modulator,p->std); 626 p->modulator,
627 (unsigned long long)p->std);
626 break; 628 break;
627 } 629 }
628 case VIDIOC_QUERYCTRL: 630 case VIDIOC_QUERYCTRL:
@@ -686,8 +688,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
686 case VIDIOC_ENUMSTD: 688 case VIDIOC_ENUMSTD:
687 { 689 {
688 struct v4l2_standard *p=arg; 690 struct v4l2_standard *p=arg;
689 printk ("%s: index=%d, id=%lld, name=%s, fps=%d/%d, framelines=%d\n", s, 691 printk ("%s: index=%d, id=%Ld, name=%s, fps=%d/%d, "
690 p->index, p->id, p->name, 692 "framelines=%d\n", s, p->index,
693 (unsigned long long)p->id, p->name,
691 p->frameperiod.numerator, 694 p->frameperiod.numerator,
692 p->frameperiod.denominator, 695 p->frameperiod.denominator,
693 p->framelines); 696 p->framelines);
@@ -907,7 +910,7 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
907 { 910 {
908 v4l2_std_id *p=arg; 911 v4l2_std_id *p=arg;
909 912
910 printk ("%s: value=%llu\n", s, *p); 913 printk ("%s: value=%Lu\n", s, (unsigned long long)*p);
911 break; 914 break;
912 } 915 }
913 } 916 }