V4L/DVB (3614): Fix compilation warning at powerpc platform
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 25 Mar 2006 18:53:38 +0000 (15:53 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 2 Apr 2006 07:55:02 +0000 (04:55 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/vp702x-fe.c
drivers/media/video/bt8xx/bttv-vbi.c
drivers/media/video/tuner-core.c
drivers/media/video/video-buf.c

index b6d95e1c9c527d7d799ecf4e20cb435973f469c6..2a89f8c5da99cf78c8af7fde74c67dd24282d0c1 100644 (file)
@@ -147,8 +147,9 @@ static int vp702x_fe_set_frontend(struct dvb_frontend* fe,
        cmd[4] = (sr >> 4)  & 0xff;
        cmd[5] = (sr << 4)  & 0xf0;
 
-       deb_fe("setting frontend to: %u -> %u (%x) LNB-based GHz, symbolrate: %d -> %Lu (%Lx)\n",
-                       fep->frequency,freq,freq, fep->u.qpsk.symbol_rate, sr, sr);
+       deb_fe("setting frontend to: %u -> %u (%x) LNB-based GHz, symbolrate: %d -> %lu (%lx)\n",
+                       fep->frequency,freq,freq, fep->u.qpsk.symbol_rate,
+                       (unsigned long) sr, (unsigned long) sr);
 
 /*     if (fep->inversion == INVERSION_ON)
                cmd[6] |= 0x80; */
index e20ff238e4092b4f1811b6741ae3005bf145bd94..8c9f0f7cf467734b1ef69e252f8ce6a86f3f1199 100644 (file)
@@ -184,7 +184,7 @@ void bttv_vbi_try_fmt(struct bttv_fh *fh, struct v4l2_format *f)
                - tvnorm->vbistart[0];
        count1 = (s64) f->fmt.vbi.start[1] + f->fmt.vbi.count[1]
                - tvnorm->vbistart[1];
-       count  = clamp (max (count0, count1), 1LL, (s64) VBI_MAXLINES);
+       count  = clamp (max (count0, count1), (s64) 1, (s64) VBI_MAXLINES);
 
        f->fmt.vbi.start[0] = tvnorm->vbistart[0];
        f->fmt.vbi.start[1] = tvnorm->vbistart[1];
index df195c905366c774d16bdfff47987d2523cff297..bbcb281cc391b3c761a1473b5ae8a785283ddbbb 100644 (file)
@@ -401,7 +401,7 @@ static void tuner_status(struct i2c_client *client)
        }
        tuner_info("Tuner mode:      %s\n", p);
        tuner_info("Frequency:       %lu.%02lu MHz\n", freq, freq_fraction);
-       tuner_info("Standard:        0x%08llx\n", t->std);
+       tuner_info("Standard:        0x%08lx\n", (unsigned long)t->std);
        if (t->mode != V4L2_TUNER_RADIO)
               return;
        if (t->has_signal) {
index d2ca0f08d0df635e4d2ae73669dfbec1f98e07d0..fb09c43c0333b70cca33f72041b79f2c3bb28b20 100644 (file)
@@ -923,7 +923,7 @@ ssize_t videobuf_read_one(struct videobuf_queue *q,
                /* need to capture a new frame */
                retval = -ENOMEM;
                q->read_buf = videobuf_alloc(q->msize);
-               dprintk(1,"video alloc=0x%08x\n",(unsigned int) q->read_buf);
+               dprintk(1,"video alloc=0x%p\n", q->read_buf);
                if (NULL == q->read_buf)
                        goto done;
                q->read_buf->memory = V4L2_MEMORY_USERPTR;