Skip to content

Commit

Permalink
V4L/DVB (7124): tuner-simple: display frequency in MHz
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent be71f7d commit 7f8447d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7f8447d

Please sign in to comment.