From: Mauro Carvalho Chehab Date: Mon, 2 Jan 2012 11:18:42 +0000 (-0200) Subject: utils/dvb: Print the results of get_frontend after getting a lock X-Git-Tag: v4l-utils-0.9.0-test1~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0606c3a7a0db139e1d3b62c0142b817908213b77;p=platform%2Fupstream%2Fv4l-utils.git utils/dvb: Print the results of get_frontend after getting a lock Signed-off-by: Mauro Carvalho Chehab --- diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c index baa9b75f..1200ce08 100644 --- a/utils/dvb/dvbv5-zap.c +++ b/utils/dvb/dvbv5-zap.c @@ -203,6 +203,8 @@ static void do_timeout(int x) } } +static old_status = 0; + static int print_frontend_stats(struct dvb_v5_fe_parms *parms, int human_readable) { @@ -234,8 +236,15 @@ static int print_frontend_stats(struct dvb_v5_fe_parms *parms, status, _signal, snr, ber, uncorrected_blocks); } - if (status & FE_HAS_LOCK) + if (status & FE_HAS_LOCK) { fprintf(stderr, "FE_HAS_LOCK"); + if (!(old_status & FE_HAS_LOCK)) { + fprintf(stderr, "\n"); + dvb_fe_get_parms(parms); + dvb_fe_prt_parms(stderr, parms); + } + } + old_status = status; fprintf(stderr, "\n"); return 0;