[media] helene: fix a warning when printing sizeof()
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 7 Jun 2016 15:18:40 +0000 (12:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 7 Jun 2016 15:19:32 +0000 (12:19 -0300)
drivers/media/dvb-frontends/helene.c: In function 'helene_write_regs':
drivers/media/dvb-frontends/helene.c:312:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
     "wr reg=%04x: len=%d vs %lu is too big!\n",
     ^

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/helene.c

index f385ebd2e7a74a70ca1bfc895aa31719efdd4175..693b5bfbdf0a995e0ac50528585cd272fda091a2 100644 (file)
@@ -309,7 +309,7 @@ static int helene_write_regs(struct helene_priv *priv,
 
        if (len + 1 > sizeof(buf)) {
                dev_warn(&priv->i2c->dev,
-                               "wr reg=%04x: len=%d vs %lu is too big!\n",
+                               "wr reg=%04x: len=%d vs %Zu is too big!\n",
                                reg, len + 1, sizeof(buf));
                return -E2BIG;
        }