From: Ronny Strutz Date: Sat, 13 Aug 2005 00:54:46 +0000 (+0000) Subject: removed tons of debug - still enough in ;) X-Git-Tag: 2.6.0~5764 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/a910d779836f8368bd7986dae6d25615ca6ca9e9?ds=sidebyside removed tons of debug - still enough in ;) --- diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index 6a748118..e6e3237d 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -30,7 +30,7 @@ eDVBCIInterfaces::eDVBCIInterfaces() ++num_ci; } - eDebug("done, found %d common interfaces"); + eDebug("done, found %d common interface slots"); } eDVBCIInterfaces::~eDVBCIInterfaces() @@ -40,18 +40,17 @@ eDVBCIInterfaces::~eDVBCIInterfaces() int eDVBCISlot::send(const unsigned char *data, size_t len) { int res; - int i; - - printf("< "); - for(i=0;isetRequested(eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Write); + notifier->setRequested(eSocketNotifier::Read | eSocketNotifier::Priority | eSocketNotifier::Write); return res; } @@ -71,37 +70,29 @@ void eDVBCISlot::data(int what) __u8 data[4096]; int r; r = ::read(fd, data, 4096); - //if(r < 0) - // eWarning("ERROR reading from CI - %m\n"); if(state != stateInserted) { state = stateInserted; eDebug("ci inserted"); - - /* enable HUP to detect removal or errors */ - //notifier_event->start(); + /* enable PRI to detect removal or errors */ notifier->setRequested(eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Write); } if(r > 0) { - int i; - printf("> "); - for(i=0;i "); + //for(i=0;isetRequested(eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Write); return; } if(what == eSocketNotifier::Write) { - printf("pollall\n"); if(eDVBCISession::pollAll() == 0) { - printf("disable pollout\n"); notifier->setRequested(eSocketNotifier::Read | eSocketNotifier::Priority); } - return; } }