Commit b6095d29 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] helene: fix a warning when printing sizeof()

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: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 9ca1736f
...@@ -309,7 +309,7 @@ static int helene_write_regs(struct helene_priv *priv, ...@@ -309,7 +309,7 @@ static int helene_write_regs(struct helene_priv *priv,
if (len + 1 > sizeof(buf)) { if (len + 1 > sizeof(buf)) {
dev_warn(&priv->i2c->dev, 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)); reg, len + 1, sizeof(buf));
return -E2BIG; return -E2BIG;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment