X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb_ci%2Fdvbci_appmgr.cpp;h=b3e9ca14cbc735dd26440f0fe7b4ba170b4a1b05;hp=f81597309558a33c4ca25f5540469ff79ede5898;hb=4fc2a70eeb86fa51b783b4a9c034b926db0013a3;hpb=27ac653dea3ebb218d915604a8fce4b0d34d9278 diff --git a/lib/dvb_ci/dvbci_appmgr.cpp b/lib/dvb_ci/dvbci_appmgr.cpp index f815973..b3e9ca1 100644 --- a/lib/dvb_ci/dvbci_appmgr.cpp +++ b/lib/dvb_ci/dvbci_appmgr.cpp @@ -1,5 +1,6 @@ /* DVB CI Application Manager */ +#include #include #include @@ -16,10 +17,10 @@ eDVBCIApplicationManagerSession::~eDVBCIApplicationManagerSession() int eDVBCIApplicationManagerSession::receivedAPDU(const unsigned char *tag,const void *data, int len) { - printf("SESSION(%d)/APP %02x %02x %02x: ", session_nb, tag[0], tag[1], tag[2]); + eDebugNoNewLine("SESSION(%d)/APP %02x %02x %02x: ", session_nb, tag[0], tag[1], tag[2]); for (int i=0; i len) { - printf("warning, invalid length (%d vs %d)\n", dl+6, len); + eDebug("warning, invalid length (%d vs %d)", dl+6, len); dl=len-6; } char str[dl + 1]; memcpy(str, ((char*)data) + 6, dl); str[dl] = '\0'; for (int i = 0; i < dl; ++i) - printf("%c", ((unsigned char*)data)[i+6]); - printf("\n"); + eDebugNoNewLine("%c", ((unsigned char*)data)[i+6]); + eDebug(""); eDVBCI_UI::getInstance()->setAppName(slot->getSlotID(), str); @@ -53,7 +54,7 @@ int eDVBCIApplicationManagerSession::receivedAPDU(const unsigned char *tag,const break; } default: - printf("unknown APDU tag 9F 80 %02x\n", tag[2]); + eDebug("unknown APDU tag 9F 80 %02x", tag[2]); break; } } @@ -72,11 +73,11 @@ int eDVBCIApplicationManagerSession::doAction() return 1; } case stateFinal: - printf("in final state.\n"); + eDebug("in final state."); wantmenu = 0; if (wantmenu) { - printf("wantmenu: sending Tenter_menu\n"); + eDebug("wantmenu: sending Tenter_menu"); const unsigned char tag[3]={0x9F, 0x80, 0x22}; // Tenter_menu sendAPDU(tag); wantmenu=0; @@ -90,7 +91,7 @@ int eDVBCIApplicationManagerSession::doAction() int eDVBCIApplicationManagerSession::startMMI() { - printf("in appmanager -> startmmi()\n"); + eDebug("in appmanager -> startmmi()"); const unsigned char tag[3]={0x9F, 0x80, 0x22}; // Tenter_menu sendAPDU(tag); return 0;