From: Mauro Carvalho Chehab Date: Fri, 15 Nov 2013 10:54:43 +0000 (-0200) Subject: libdvbv5/dvb-scan: be more verbose in debug mode X-Git-Tag: v4l-utils-1.2.0~362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95284c07b48120dc08d95b9009eda9c982aa510d;p=platform%2Fupstream%2Fv4l-utils.git libdvbv5/dvb-scan: be more verbose in debug mode That helps to know what's happening, especially when there are some crashes on it. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index 87d6ae8..e53ae3c 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -111,6 +111,8 @@ int dvb_read_section_with_id(struct dvb_v5_fe_parms *parms, int dmx_fd, return -1; } + dvb_log("Parsing table ID %d, program ID %d", tid, pid); + while (1) { int available; @@ -313,6 +315,7 @@ struct dvb_v5_descriptors *dvb_get_ts_tables(struct dvb_v5_fe_parms *parms, dvb_scan_handler->pmt = realloc(dvb_scan_handler->pmt, sizeof(*dvb_scan_handler->pmt) * (num_pmt + 1)); + dvb_log("Program ID %d", program->pid); rc = dvb_read_section(parms, dmx_fd, DVB_TABLE_PMT, program->pid, (uint8_t **)&dvb_scan_handler->pmt[num_pmt],