dvbv5-scan: also prints signal strength on tuner fail
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Jan 2013 19:55:29 +0000 (17:55 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Feb 2013 18:50:05 +0000 (16:50 -0200)
Even when tuner fails, it makes sense to print the signal strength.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/dvb/dvbv5-scan.c

index 161d7f0..de44259 100644 (file)
@@ -110,6 +110,9 @@ static int print_frontend_stats(struct dvb_v5_fe_parms *parms)
        /* While not lock, display status on a new line */
        dvb_fe_retrieve_stats(parms, DTV_STATUS, &status);
        if (!(status & FE_HAS_LOCK)) {
+               dvb_fe_snprintf_stat(parms, DTV_STAT_SIGNAL_STRENGTH, "Signal",
+                                    i, &p, &len, &show);
+
                fprintf(stderr, "%s: Tuning failed.\n", buf);
                return 0;
        }