V4L/DVB (7124): tuner-simple: display frequency in MHz
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 22 Apr 2008 17:41:49 +0000 (14:41 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 16:42:21 +0000 (13:42 -0300)
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>
drivers/media/video/tuner-simple.c

index 4854fc4a7d39f2f8d20067e8c0ef313b7367f413..85556d44c8abbb3087a78e713e766f433fa2e7ac 100644 (file)
@@ -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;
 }