dvbv5-scan: don't be too verbose with status
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 2 Mar 2013 15:23:45 +0000 (12:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 2 Mar 2013 15:26:31 +0000 (12:26 -0300)
As it tries to get status on every 100ms, it ends that too much
verbosity is produced. Don't do that. Instead, keep printing the
status at the same line. This is nicer.

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

index 4a3e818..bc248dd 100644 (file)
@@ -166,11 +166,6 @@ static int print_frontend_stats(struct arguments *args,
 
        fflush(stderr);
 
-       /* While not lock, display status on a new line */
-       dvb_fe_retrieve_stats(parms, DTV_STATUS, &status);
-       if (!isatty(STDERR_FILENO) || !(status & FE_HAS_LOCK))
-               fprintf(stderr, "\n");
-
        return 0;
 }