diff options
Diffstat (limited to 'lib/dvb_ci/dvbci_resmgr.cpp')
| -rw-r--r-- | lib/dvb_ci/dvbci_resmgr.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/dvb_ci/dvbci_resmgr.cpp b/lib/dvb_ci/dvbci_resmgr.cpp index e9e4bd1b..7382bf2e 100644 --- a/lib/dvb_ci/dvbci_resmgr.cpp +++ b/lib/dvb_ci/dvbci_resmgr.cpp @@ -1,29 +1,30 @@ /* DVB CI Resource Manager */ +#include <lib/base/eerror.h> #include <lib/dvb_ci/dvbci_resmgr.h> int eDVBCIResourceManagerSession::receivedAPDU(const unsigned char *tag,const void *data, int len) { - printf("SESSION(%d) %02x %02x %02x: ", session_nb, tag[0], tag[1], tag[2]); + eDebugNoNewLine("SESSION(%d) %02x %02x %02x: ", session_nb, tag[0], tag[1], tag[2]); for (int i=0; i<len; i++) - printf("%02x ", ((const unsigned char*)data)[i]); - printf("\n"); + eDebugNoNewLine("%02x ", ((const unsigned char*)data)[i]); + eDebug(""); if ((tag[0]==0x9f) && (tag[1]==0x80)) { switch (tag[2]) { case 0x10: // profile enquiry - printf("cam fragt was ich kann.\n"); + eDebug("cam fragt was ich kann."); state=stateProfileEnquiry; return 1; break; case 0x11: // Tprofile - printf("mein cam kann: "); + eDebugNoNewLine("mein cam kann: "); if (!len) - printf("nichts\n"); + eDebug("nichts"); else for (int i=0; i<len; i++) - printf("%02x ", ((const unsigned char*)data)[i]); + eDebugNoNewLine("%02x ", ((const unsigned char*)data)[i]); if (state == stateFirstProfileEnquiry) { @@ -33,7 +34,7 @@ int eDVBCIResourceManagerSession::receivedAPDU(const unsigned char *tag,const vo state=stateFinal; break; default: - printf("unknown APDU tag 9F 80 %02x\n", tag[2]); + eDebug("unknown APDU tag 9F 80 %02x", tag[2]); } } @@ -60,7 +61,7 @@ int eDVBCIResourceManagerSession::doAction() } case stateProfileChange: { - printf("bla kaputt\n"); + eDebug("bla kaputt"); break; } case stateProfileEnquiry: @@ -81,7 +82,7 @@ int eDVBCIResourceManagerSession::doAction() return 0; } case stateFinal: - printf("stateFinal und action! kann doch garnicht sein ;)\n"); + eDebug("stateFinal und action! kann doch garnicht sein ;)"); default: break; } |
