]> www.vanbest.org Git - sasc-ng.git/commitdiff
viaccess: fix TPS AU dump
authorleslie <unknown>
Mon, 4 Feb 2008 10:14:21 +0000 (11:14 +0100)
committerleslie <unknown>
Mon, 4 Feb 2008 10:14:21 +0000 (11:14 +0100)
systems/viaccess/tps.c

index 40d654d3570001cb06286956c5100c873ba7fd6a..5ac0acaf7b6544cd41bf942418fac67e3547c2ec 100644 (file)
 //#define TRUST_BOXTIME // should we trust the local time on this machine?
 //#define DUMP_TPSAU "/var/tmp"
 
+#ifdef DUMP_TPSAU
+#include <unistd.h>
+#endif
+
 // -- cRC6 ---------------------------------------------------------------------
 
 /*
@@ -754,7 +758,7 @@ bool cTpsKeys::ProcessAu(const cOpenTVModule *mod)
       }
     }
   if(!kd || !cb1 || !cb2 || !cb3) {
-    PRINTF(L_SYS_TPSAU,"couldn't locate all pointers in data section");
+    PRINTF(L_SYS_TPSAU,"couldn't locate all pointers in data section (%d,%d,%d,%d)",kd,cb1,cb2,cb3);
     return false;
     }
   unsigned int len=(kd>cb1 && kd>cb2 && kd>cb3) ? kd : datahdr->dlen;