Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Small ci.c patch to improve debug messages



Hello

I've spent some time to find out what was wrong with my CAM and I
found out that a failure to open /dev/dvb/frontend0/ca0" was not
logged.

So here's a small patch that add a trace (note that strerr_r is thread
safe).

HTH

--- vdr-1.3.17/ci.c	2004-07-17 16:30:17.000000000 +0200
+++ new/ci.c	2004-12-05 18:11:06.000000000 +0100
@@ -1361,6 +1361,11 @@
         LOG_ERROR_STR(FileName);
      close(fd_ca);
      }
+  else
+    {
+      char err [100] ;
+      dsyslog("Can't open ciHandler %s: %s",FileName,strerror_r(errno,err,100)) ;
+    }
   return NULL;
 }
 

Home | Main Index | Thread Index