summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-27 20:21:05 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2008-01-27 20:21:05 -0500
commit6115a22c6160858176408cd0bc3622f46db6b012 (patch)
tree828faf90786f07fb85d4507b799ae3f882eb6d07 /linux/drivers/media/video/tuner-simple.c
parent031442503c1ea2fc56a32c1027c5dd1c4e8f05b7 (diff)
downloadmediapointer-dvb-s2-6115a22c6160858176408cd0bc3622f46db6b012.tar.gz
mediapointer-dvb-s2-6115a22c6160858176408cd0bc3622f46db6b012.tar.bz2
tuner-simple: display frequency in MHz
From: Michael Krufky <mkrufky@linuxtv.org> fix debug in simple_config_lookup to display frequency in MHz Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-simple.c')
-rw-r--r--linux/drivers/media/video/tuner-simple.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index 0f657cb7c..a89dee2a7 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -255,8 +255,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;
}