From: Mauro Carvalho Chehab Date: Sun, 15 Jan 2012 23:19:03 +0000 (-0200) Subject: dvbv5-scan: Fix print message on nameless service ID's X-Git-Tag: v4l-utils-0.9.0-test1~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b4fda4fa2580ec9052853c3425c13e030ffc5f4;p=platform%2Fupstream%2Fv4l-utils.git dvbv5-scan: Fix print message on nameless service ID's Signed-off-by: Mauro Carvalho Chehab --- diff --git a/utils/dvb/dvbv5-scan.c b/utils/dvb/dvbv5-scan.c index dca614f..e850a60 100644 --- a/utils/dvb/dvbv5-scan.c +++ b/utils/dvb/dvbv5-scan.c @@ -390,9 +390,11 @@ static int run_scan(struct arguments *args, entry->vchannel = dvb_vchannel(dvb_desc, i); if (service_table->service_name) printf("Service #%d: %s", i, service_table->service_name); - if (entry->vchannel) - printf(" channel %s", entry->vchannel); - printf("\n"); + else + printf("Service #%d", i); + if (entry->vchannel) + printf(" channel %s", entry->vchannel); + printf("\n"); } store_dvb_channel(&dvb_file_new, parms, dvb_desc,