aboutsummaryrefslogtreecommitdiffstats
path: root/console/scantv.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:41 +0200
commit291d7b864be127f1fe78138b5fe476387d18f1ba (patch)
tree5842836baef5297b73a48c2713b56785c6d8b891 /console/scantv.c
parent1ddc68f41b45a67503550821e4492c6a08970c88 (diff)
v3.91
Diffstat (limited to 'console/scantv.c')
-rw-r--r--console/scantv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/console/scantv.c b/console/scantv.c
index 3bebf78..0a470f6 100644
--- a/console/scantv.c
+++ b/console/scantv.c
@@ -308,7 +308,10 @@ main(int argc, char **argv)
name = get_vbi_name(vbi);
fprintf(stderr,"%s\n",name ? name : "???");
if (NULL == name) {
- sprintf(dummy,"unknown (%s)",chanlist[fi].name);
+ if (-1 == fi)
+ sprintf(dummy,"unknown (%s)",chanlist[fi].name);
+ else
+ sprintf(dummy,"unknown (%.2f)",fc/16.0);
name = dummy;
}
if (-1 != fi) {

Privacy Policy