diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2012-07-04 16:38:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-06 13:55:13 -0400 |
commit | 257ee97eeb90aaf70cc891577d69afa63d81ceea (patch) | |
tree | fab37ff250357355d7e480339aca7ff5cc11f1ae | |
parent | 7eaf718844c585e293b8d0d1173baab9b9c20d7d (diff) |
[media] drxk: Improve logging
This patch simply fixes some logging calls:
- Use KERN_INFO when printing the chip status.
- Add a missing space when logging the drxk_gate_ctrl call.
- Use the same logging text as always if the scu_command in GetQAMLockStatus fails.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/drxk_hard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c index 6eef3df3687d..1ab8154542da 100644 --- a/drivers/media/dvb/frontends/drxk_hard.c +++ b/drivers/media/dvb/frontends/drxk_hard.c | |||
@@ -959,7 +959,7 @@ static int GetDeviceCapabilities(struct drxk_state *state) | |||
959 | if (status < 0) | 959 | if (status < 0) |
960 | goto error; | 960 | goto error; |
961 | 961 | ||
962 | printk(KERN_ERR "drxk: status = 0x%08x\n", sioTopJtagidLo); | 962 | printk(KERN_INFO "drxk: status = 0x%08x\n", sioTopJtagidLo); |
963 | 963 | ||
964 | /* driver 0.9.0 */ | 964 | /* driver 0.9.0 */ |
965 | switch ((sioTopJtagidLo >> 29) & 0xF) { | 965 | switch ((sioTopJtagidLo >> 29) & 0xF) { |
@@ -5388,7 +5388,7 @@ static int GetQAMLockStatus(struct drxk_state *state, u32 *pLockStatus) | |||
5388 | SCU_RAM_COMMAND_CMD_DEMOD_GET_LOCK, 0, NULL, 2, | 5388 | SCU_RAM_COMMAND_CMD_DEMOD_GET_LOCK, 0, NULL, 2, |
5389 | Result); | 5389 | Result); |
5390 | if (status < 0) | 5390 | if (status < 0) |
5391 | printk(KERN_ERR "drxk: %s status = %08x\n", __func__, status); | 5391 | printk(KERN_ERR "drxk: Error %d on %s\n", status, __func__); |
5392 | 5392 | ||
5393 | if (Result[1] < SCU_RAM_QAM_LOCKED_LOCKED_DEMOD_LOCKED) { | 5393 | if (Result[1] < SCU_RAM_QAM_LOCKED_LOCKED_DEMOD_LOCKED) { |
5394 | /* 0x0000 NOT LOCKED */ | 5394 | /* 0x0000 NOT LOCKED */ |
@@ -6329,7 +6329,7 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable) | |||
6329 | { | 6329 | { |
6330 | struct drxk_state *state = fe->demodulator_priv; | 6330 | struct drxk_state *state = fe->demodulator_priv; |
6331 | 6331 | ||
6332 | dprintk(1, "%s\n", enable ? "enable" : "disable"); | 6332 | dprintk(1, ": %s\n", enable ? "enable" : "disable"); |
6333 | 6333 | ||
6334 | if (state->m_DrxkState == DRXK_NO_DEV) | 6334 | if (state->m_DrxkState == DRXK_NO_DEV) |
6335 | return -ENODEV; | 6335 | return -ENODEV; |