From: Antti Palosaari <crope@iki.fi>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH] si2168: Fix unknown chip version message
Date: Wed, 23 Jul 2014 11:22:40 +0300 [thread overview]
Message-ID: <53CF70D0.1060907@iki.fi> (raw)
In-Reply-To: <1406056450-16031-1-git-send-email-m.chehab@samsung.com>
Moikka!
It is single character formatter, not string, => no need to terminate,
so that patch is not valid.
regards
Antti
On 07/22/2014 10:14 PM, Mauro Carvalho Chehab wrote:
> At least here with my PCTV 292e, it is printing this error:
>
> si2168 10-0064: si2168: unkown chip version Si21170-
>
> without a \n at the end. Probably because it is doing something
> weird or firmware didn't load well. Anyway, better to print it
> in hex, instead of using %c.
>
> While here, fix the typo.
>
> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
> ---
> drivers/media/dvb-frontends/si2168.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
> index 41bdbc4d9f6c..842c4a555d01 100644
> --- a/drivers/media/dvb-frontends/si2168.c
> +++ b/drivers/media/dvb-frontends/si2168.c
> @@ -414,9 +414,8 @@ static int si2168_init(struct dvb_frontend *fe)
> break;
> default:
> dev_err(&s->client->dev,
> - "%s: unkown chip version Si21%d-%c%c%c\n",
> - KBUILD_MODNAME, cmd.args[2], cmd.args[1],
> - cmd.args[3], cmd.args[4]);
> + "%s: unknown chip version: 0x%04x\n",
> + KBUILD_MODNAME, chip_id);
> ret = -EINVAL;
> goto err;
> }
>
--
http://palosaari.fi/
next prev parent reply other threads:[~2014-07-23 8:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 19:14 [PATCH] si2168: Fix unknown chip version message Mauro Carvalho Chehab
2014-07-23 8:22 ` Antti Palosaari [this message]
2014-07-23 13:18 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53CF70D0.1060907@iki.fi \
--to=crope@iki.fi \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
--cc=mchehab@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.