From 1f67505822974b7eb72ea3bfdad7de8d992118a6 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 12 Jul 2007 06:16:17 -0300 Subject: gen_keytables.pl is too verbose. From: Mauro Carvalho Chehab Make gen_keytables.pl less verbose Signed-off-by: Mauro Carvalho Chehab --- v4l2-apps/util/gen_keytables.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- v4l2-apps/util/gen_keytables.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'v4l2-apps/util') diff --git a/v4l2-apps/util/gen_keytables.pl b/v4l2-apps/util/gen_keytables.pl index f183ab4d1..889516de4 100755 --- a/v4l2-apps/util/gen_keytables.pl +++ b/v4l2-apps/util/gen_keytables.pl @@ -2,13 +2,15 @@ use strict; my $keyname=""; +my $debug=0; + while (<>) { #IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE] = { if (m/IR_KEYTAB_TYPE\s+(\w[\w\d_]+)/) { $keyname = $1; $keyname =~ s/^ir_codes_//; - print "Generating keycodes/$keyname\n"; + print "Generating keycodes/$keyname\n" if $debug; open OUT, ">keycodes/$keyname"; next; } -- cgit v1.2.3