]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6635): xc2028: v4l2_std_id needs to be long long to display completely
authorChris Pascoe <c.pascoe@itee.uq.edu.au>
Mon, 19 Nov 2007 07:38:53 +0000 (04:38 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:23 +0000 (19:02 -0200)
Cast v4l2_std_id variables to unsigned long long so they will printk properly.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-xc2028.c

index c208f1f5e72c141b3804586459bf3d7ddede8169..a01231a0410d4c61e6fe18cc1454db9c7acc5253 100644 (file)
@@ -330,7 +330,7 @@ static int load_all_firmwares(struct dvb_frontend *fe)
                        dump_firm_type(type);
                        printk("(%x), id %llx is corrupted "
                               "(size=%d, expected %d)\n",
-                              type, id,
+                              type, (unsigned long long)id,
                               (unsigned)(endp - p), size);
                        goto corrupt;
                }
@@ -343,8 +343,8 @@ static int load_all_firmwares(struct dvb_frontend *fe)
                }
                tuner_info("Reading firmware type ");
                dump_firm_type(type);
-               printk("(%x), id %lx, size=%d.\n",
-                          type, (unsigned long)id, size);
+               printk("(%x), id %llx, size=%d.\n",
+                          type, (unsigned long long)id, size);
 
                memcpy(priv->firm[n].ptr, p, size);
                priv->firm[n].type = type;
@@ -417,7 +417,7 @@ ret:
        tuner_dbg("%s firmware for type=", (i < 0)? "Can't find": "Found");
        if (debug) {
                dump_firm_type(type);
-               printk("(%x), id %08lx.\n", type, (unsigned long)*id);
+               printk("(%x), id %016llx.\n", type, (unsigned long long)*id);
        }
        return i;
 }
@@ -437,7 +437,7 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
 
        tuner_info("Loading firmware for type=");
        dump_firm_type(type);
-       printk("(%x), id %08lx.\n", type, (unsigned long)*id);
+       printk("(%x), id %016llx.\n", type, (unsigned long long)*id);
 
        p = priv->firm[pos].ptr;