libdvbv5: improve debug messages
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 24 Nov 2013 09:54:23 +0000 (07:54 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 27 Nov 2013 11:24:40 +0000 (09:24 -0200)
commit33f14129ad295ea3a2a226143419bfa60d39c411
tree0e744c6120b1d476f69f64101e94cdc7d33500d4
parent38cbd4809af269d34ff4afa28436d3f614f56d02
libdvbv5: improve debug messages

Add several improvements at the debug messages:

- Without verbose, show only the Virtual channels or
  services to be stored in the file;

- instead of using fprintf for errors, use the error
  macros. That will make errors colored;

- With verbose=1, will show all parsed data;

- With verbose=2, will show all unparsed descriptors and
their hexdump contents;

- With verbose=3, will show all descriptors and their
hexdump contents, including the ones without a parser.

Verbose levels 2 and 3 helps to detect if some improvements would
be needed inside the descriptor parser's library.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/descriptors.c
lib/libdvbv5/descriptors/desc_extension.c
lib/libdvbv5/dvb-file.c
lib/libdvbv5/dvb-scan.c