[dvblast-devel] Patch to add tuner name to fe-status

Georgi Chorbadzhiyski gf at unixsol.org
Wed Oct 17 23:31:16 CEST 2012


On 10/17/12 10:57 PM, Jeremy Poulter wrote:
> Here is a small patch to add the tunner name to the output of the dvblastctl fe-status command.
> This was handy for me to enable be to find the DVB-T2 tuner out of the 6 other DVB-T tuners.
>
> diff --git a/dvblastctl.c b/dvblastctl.c
> index 7862b90..f6edb59 100644
> --- a/dvblastctl.c
> +++ b/dvblastctl.c
> @@ -568,6 +568,12 @@ int main( int i_argc, char **ppsz_argv )
>           else \
>               printf( "%s: %u\n", STRINGIFY(x), p_ret->info.x ); \
>       } while(0)
> +
> +        if ( i_print_type == PRINT_XML )
> +            printf( " <SETTING name=\"%s\"/>\n", p_ret->info.name );
> +        else
> +            printf( "name: %s\n", p_ret->info.name );
> +
>           PRINT_INFO( frequency_min );
>           PRINT_INFO( frequency_max );
>           PRINT_INFO( frequency_stepsize );

Look useful, let me test it tomorrow and I'll apply it.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/


More information about the dvblast-devel mailing list