summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-09 13:13:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-09 13:13:36 +0200
commit53e840af509e64349621aebed981570c24ed0c88 (patch)
treeb7451de8e36ed3aa388e23604980948bc81750da /epg.c
parentbf779b3bfe1c5742fce085b1885f96a45b51e82e (diff)
downloadvdr-53e840af509e64349621aebed981570c24ed0c88.tar.gz
vdr-53e840af509e64349621aebed981570c24ed0c88.tar.bz2
Added more error messages and line numbers when reading EPG data and info.vdr
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epg.c b/epg.c
index 4377c6d3..0bdd185c 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.37 2005/09/09 15:14:11 kls Exp $
+ * $Id: epg.c 1.38 2005/10/09 12:57:55 kls Exp $
*/
#include "epg.h"
@@ -285,8 +285,10 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule)
if (Schedule) {
cEvent *Event = NULL;
char *s;
+ int line = 0;
cReadLine ReadLine;
while ((s = ReadLine.Read(f)) != NULL) {
+ line++;
char *t = skipspace(s + 1);
switch (*s) {
case 'E': if (!Event) {
@@ -316,8 +318,10 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule)
break;
case 'c': // to keep things simple we react on 'c' here
return true;
- default: if (Event && !Event->Parse(s))
+ default: if (Event && !Event->Parse(s)) {
+ esyslog("ERROR: EPG data problem in line %d", line);
return false;
+ }
}
}
esyslog("ERROR: unexpected end of file while reading EPG data");