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

Jeremy Poulter jeremy.poulter at oregan.net
Wed Oct 17 21:57:58 CEST 2012


Hi,

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.

Cheers,

Jeremy
-------------- next part --------------
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 );


More information about the dvblast-devel mailing list