From 4e8c9a3fd5e294e257a34d0373768246b43e3014 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 5 Sep 2014 11:42:44 -0300 Subject: [PATCH] libdvbv5: Fix the error message when a props is not found The acessed data when a property is not found on write format oneline is wrong. Use dvb_cmd_name() to get the right one, and uses the field that came from table->prop. Signed-off-by: Mauro Carvalho Chehab --- lib/libdvbv5/dvb-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index c8f7a12..1e50501 100644 --- a/lib/libdvbv5/dvb-file.c +++ b/lib/libdvbv5/dvb-file.c @@ -436,7 +436,7 @@ int dvb_write_format_oneline(const char *fname, if (j >= entry->n_props) { fprintf(stderr, "property %s not supported while parsing entry %d of %s\n", - dvb_v5_name[entry->props[i].cmd], + dvb_cmd_name(table->prop), line, fname); } -- 2.7.4