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:
f78653d
)
dvbv5-scan: also prints signal strength on tuner fail
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 24 Jan 2013 19:55:29 +0000
(17:55 -0200)
committer
Mauro 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
patch
|
blob
|
history
diff --git
a/utils/dvb/dvbv5-scan.c
b/utils/dvb/dvbv5-scan.c
index
161d7f0
..
de44259
100644
(file)
--- a/
utils/dvb/dvbv5-scan.c
+++ b/
utils/dvb/dvbv5-scan.c
@@
-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;
}