* [PATCH] [media] dvb-frontends/lnbh25: improve kernellog output
@ 2017-06-20 19:57 Daniel Scheller
2017-06-21 0:26 ` Abylay Ospan
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Scheller @ 2017-06-20 19:57 UTC (permalink / raw)
To: linux-media, mchehab, aospan, serjk
From: Daniel Scheller <d.scheller@gmx.net>
Use dev_dbg() in conjunction with the %*ph format macro to print the vmon
status debug, thus hiding continuous hexdumping from default log levels.
Also, change the attach success log line from error to info severity.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
---
drivers/media/dvb-frontends/lnbh25.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/media/dvb-frontends/lnbh25.c b/drivers/media/dvb-frontends/lnbh25.c
index ef3021e964be..cb486e879fdd 100644
--- a/drivers/media/dvb-frontends/lnbh25.c
+++ b/drivers/media/dvb-frontends/lnbh25.c
@@ -76,8 +76,8 @@ static int lnbh25_read_vmon(struct lnbh25_priv *priv)
return ret;
}
}
- print_hex_dump_bytes("lnbh25_read_vmon: ",
- DUMP_PREFIX_OFFSET, status, sizeof(status));
+ dev_dbg(&priv->i2c->dev, "%s(): %*ph\n",
+ __func__, (int) sizeof(status), status);
if ((status[0] & (LNBH25_STATUS_OFL | LNBH25_STATUS_VMON)) != 0) {
dev_err(&priv->i2c->dev,
"%s(): voltage in failure state, status reg 0x%x\n",
@@ -178,7 +178,7 @@ struct dvb_frontend *lnbh25_attach(struct dvb_frontend *fe,
fe->ops.release_sec = lnbh25_release;
fe->ops.set_voltage = lnbh25_set_voltage;
- dev_err(&i2c->dev, "%s(): attached at I2C addr 0x%02x\n",
+ dev_info(&i2c->dev, "%s(): attached at I2C addr 0x%02x\n",
__func__, priv->i2c_address);
return fe;
}
--
2.13.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [media] dvb-frontends/lnbh25: improve kernellog output
2017-06-20 19:57 [PATCH] [media] dvb-frontends/lnbh25: improve kernellog output Daniel Scheller
@ 2017-06-21 0:26 ` Abylay Ospan
0 siblings, 0 replies; 2+ messages in thread
From: Abylay Ospan @ 2017-06-21 0:26 UTC (permalink / raw)
To: Daniel Scheller; +Cc: linux-media, Mauro Carvalho Chehab, Kozlov Sergey
Looks good for me.
Acked-by: Abylay Ospan <aospan@netup.ru>
2017-06-20 15:57 GMT-04:00 Daniel Scheller <d.scheller.oss@gmail.com>:
> From: Daniel Scheller <d.scheller@gmx.net>
>
> Use dev_dbg() in conjunction with the %*ph format macro to print the vmon
> status debug, thus hiding continuous hexdumping from default log levels.
> Also, change the attach success log line from error to info severity.
>
> Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
> ---
> drivers/media/dvb-frontends/lnbh25.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/dvb-frontends/lnbh25.c b/drivers/media/dvb-frontends/lnbh25.c
> index ef3021e964be..cb486e879fdd 100644
> --- a/drivers/media/dvb-frontends/lnbh25.c
> +++ b/drivers/media/dvb-frontends/lnbh25.c
> @@ -76,8 +76,8 @@ static int lnbh25_read_vmon(struct lnbh25_priv *priv)
> return ret;
> }
> }
> - print_hex_dump_bytes("lnbh25_read_vmon: ",
> - DUMP_PREFIX_OFFSET, status, sizeof(status));
> + dev_dbg(&priv->i2c->dev, "%s(): %*ph\n",
> + __func__, (int) sizeof(status), status);
> if ((status[0] & (LNBH25_STATUS_OFL | LNBH25_STATUS_VMON)) != 0) {
> dev_err(&priv->i2c->dev,
> "%s(): voltage in failure state, status reg 0x%x\n",
> @@ -178,7 +178,7 @@ struct dvb_frontend *lnbh25_attach(struct dvb_frontend *fe,
> fe->ops.release_sec = lnbh25_release;
> fe->ops.set_voltage = lnbh25_set_voltage;
>
> - dev_err(&i2c->dev, "%s(): attached at I2C addr 0x%02x\n",
> + dev_info(&i2c->dev, "%s(): attached at I2C addr 0x%02x\n",
> __func__, priv->i2c_address);
> return fe;
> }
> --
> 2.13.0
>
--
Abylay Ospan,
NetUP Inc.
http://www.netup.tv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-21 0:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-20 19:57 [PATCH] [media] dvb-frontends/lnbh25: improve kernellog output Daniel Scheller
2017-06-21 0:26 ` Abylay Ospan
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.