aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-22 14:41:49 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:42:21 -0300
commit7f8447d13d3abaeb46d0e6ae2890a843aa09561f (patch)
tree88e676006361722745d2137e475c5815bc737899 /drivers/media/video
parentbe71f7dc73d3afe6d6998a04d5c46d415c3bc62c (diff)
V4L/DVB (7124): tuner-simple: display frequency in MHz
fix debug in simple_config_lookup to display frequency in MHz Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/tuner-simple.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index 4854fc4a7d3..85556d44c8a 100644
--- a/drivers/media/video/tuner-simple.c
+++ b/drivers/media/video/tuner-simple.c
@@ -241,8 +241,10 @@ static int simple_config_lookup(struct dvb_frontend *fe,
*config = t_params->ranges[i].config;
*cb = t_params->ranges[i].cb;
- tuner_dbg("freq = %d, range = %d, config = 0x%02x, cb = 0x%02x\n",
- *frequency, i, *config, *cb);
+ tuner_dbg("freq = %d.%02d (%d), range = %d, "
+ "config = 0x%02x, cb = 0x%02x\n",
+ *frequency / 16, *frequency % 16 * 100 / 16, *frequency,
+ i, *config, *cb);
return i;
}