projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef7c811
)
utils/dvb: Print the results of get_frontend after getting a lock
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 2 Jan 2012 11:18:42 +0000
(09:18 -0200)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 7 Jan 2012 13:12:14 +0000
(11:12 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/dvb/dvbv5-zap.c
patch
|
blob
|
history
diff --git
a/utils/dvb/dvbv5-zap.c
b/utils/dvb/dvbv5-zap.c
index baa9b75fdd7a88fd1894bbcc9b97f065cc660c49..1200ce08ee308a01f1ebabceb64b490d9bff5fe0 100644
(file)
--- 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;