]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (10914): v4l2: fix compile warnings when printing u64 value.
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 6 Mar 2009 13:15:01 +0000 (10:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:15 +0000 (12:43 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/adv7170.c
drivers/media/video/adv7175.c
drivers/media/video/bt819.c
drivers/media/video/bt856.c
drivers/media/video/bt866.c
drivers/media/video/ks0127.c
drivers/media/video/saa7110.c
drivers/media/video/vpx3220.c

index 43fd1d24cdebe350eb2745a5338d5ed889e62498..873c30a41bd74420f408bc41216ea4a8f0d47ba9 100644 (file)
@@ -195,7 +195,7 @@ static int adv7170_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
 {
        struct adv7170 *encoder = to_adv7170(sd);
 
-       v4l2_dbg(1, debug, sd, "set norm %llx\n", std);
+       v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std);
 
        if (std & V4L2_STD_NTSC) {
                adv7170_write_block(sd, init_NTSC, sizeof(init_NTSC));
@@ -210,10 +210,11 @@ static int adv7170_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
                adv7170_write(sd, 0x07, TR0MODE | TR0RST);
                adv7170_write(sd, 0x07, TR0MODE);
        } else {
-               v4l2_dbg(1, debug, sd, "illegal norm: %llx\n", std);
+               v4l2_dbg(1, debug, sd, "illegal norm: %llx\n",
+                               (unsigned long long)std);
                return -EINVAL;
        }
-       v4l2_dbg(1, debug, sd, "switched to %llx\n", std);
+       v4l2_dbg(1, debug, sd, "switched to %llx\n", (unsigned long long)std);
        encoder->norm = std;
        return 0;
 }
index 709e044f007dd4f07cd1194f05c85a020bbe226e..ff12103032952c058178166f1c631d9dc38572a0 100644 (file)
@@ -228,10 +228,11 @@ static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
                adv7175_write(sd, 0x07, TR0MODE | TR0RST);
                adv7175_write(sd, 0x07, TR0MODE);
        } else {
-               v4l2_dbg(1, debug, sd, "illegal norm: %llx\n", std);
+               v4l2_dbg(1, debug, sd, "illegal norm: %llx\n",
+                               (unsigned long long)std);
                return -EINVAL;
        }
-       v4l2_dbg(1, debug, sd, "switched to %llx\n", std);
+       v4l2_dbg(1, debug, sd, "switched to %llx\n", (unsigned long long)std);
        encoder->norm = std;
        return 0;
 }
index f2ebf8441aa0ddde9a065d4c9bfc19d1afd4362f..e0d8e2b186d185ea2f3da1b754f6ff12d3830693 100644 (file)
@@ -248,7 +248,7 @@ static int bt819_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
        struct bt819 *decoder = to_bt819(sd);
        struct timing *timing = NULL;
 
-       v4l2_dbg(1, debug, sd, "set norm %llx\n", std);
+       v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std);
 
        if (std & V4L2_STD_NTSC) {
                bt819_setbit(decoder, 0x01, 0, 1);
@@ -267,7 +267,8 @@ static int bt819_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
                /* bt819_setbit(decoder, 0x1a,  5, 0); */
                timing = &timing_data[0];
        } else {
-               v4l2_dbg(1, debug, sd, "unsupported norm %llx\n", std);
+               v4l2_dbg(1, debug, sd, "unsupported norm %llx\n",
+                               (unsigned long long)std);
                return -EINVAL;
        }
        bt819_write(decoder, 0x03,
index af3c7a885d5000a165bb23ca77feb22f7fc632f2..78db39503947b765df2ac93d68887494abaab552 100644 (file)
@@ -125,7 +125,7 @@ static int bt856_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
 {
        struct bt856 *encoder = to_bt856(sd);
 
-       v4l2_dbg(1, debug, sd, "set norm %llx\n", std);
+       v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std);
 
        if (std & V4L2_STD_NTSC) {
                bt856_setbit(encoder, 0xdc, 2, 0);
index 0a32221fa3f9416068cd6ab4aaac8100b2e47801..350cae4b02c3f96866fd9a73583889a88ed9ef68 100644 (file)
@@ -91,7 +91,7 @@ static int bt866_write(struct bt866 *encoder, u8 subaddr, u8 data)
 
 static int bt866_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
 {
-       v4l2_dbg(1, debug, sd, "set norm %llx\n", std);
+       v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std);
 
        /* Only PAL supported by this driver at the moment! */
        if (!(std & V4L2_STD_NTSC))
index 678c4e23f0e8df61492df65597602d9edaab6a10..4b3a116f2f59ef9a3fbcffa61181fd4aa7429086 100644 (file)
@@ -579,8 +579,8 @@ static int ks0127_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
                        /* force to secam mode */
                        ks0127_and_or(sd, KS_DEMOD, 0xf0, 0x0f);
        } else {
-               v4l2_dbg(1, debug, sd,
-                       "VIDIOC_S_STD: Unknown norm %llx\n", std);
+               v4l2_dbg(1, debug, sd, "VIDIOC_S_STD: Unknown norm %llx\n",
+                              (unsigned long long)std);
        }
        return 0;
 }
index 977de63fded0f83c856b8369cc5c6f7974a665de..df4e08d2dceb7d83f04fc6b1bd3749486c991b7a 100644 (file)
@@ -251,7 +251,7 @@ static int saa7110_g_input_status(struct v4l2_subdev *sd, u32 *pstatus)
        int status = saa7110_read(sd);
 
        v4l2_dbg(1, debug, sd, "status=0x%02x norm=%llx\n",
-                      status, decoder->norm);
+                      status, (unsigned long long)decoder->norm);
        if (!(status & 0x40))
                res = 0;
        if (!(status & 0x03))
index ed50b912d8a0d5f8a4c7cb510593de08391388c9..0cc23539f74dcdba539987df6079686787867b20 100644 (file)
@@ -354,7 +354,7 @@ static int vpx3220_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
           choosen video norm */
        temp_input = vpx3220_fp_read(sd, 0xf2);
 
-       v4l2_dbg(1, debug, sd, "VIDIOC_S_STD %llx\n", std);
+       v4l2_dbg(1, debug, sd, "VIDIOC_S_STD %llx\n", (unsigned long long)std);
        if (std & V4L2_STD_NTSC) {
                vpx3220_write_fp_block(sd, init_ntsc, sizeof(init_ntsc) >> 1);
                v4l2_dbg(1, debug, sd, "norm switched to NTSC\n");