Changeset 4141 for trunk/reader-dre.c


Ignore:
Timestamp:
Dec 18, 2010, 8:10:55 AM (9 years ago)
Author:
dingo35
Message:

all: simplify debug system, add D_DVBAPI = -d128, eliminate cs_ptyp which complicates stuff unnecc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-dre.c

    r3893 r4141  
    3131
    3232  uchar checksum = ~xor (cmd, cmdlen);
    33   //cs_debug ("[dre-reader] Checksum: %02x", checksum);
     33  //cs_debug_mask(D_READER, "[dre-reader] Checksum: %02x", checksum);
    3434  cmdlen += headerlen;
    3535  command[cmdlen++] = checksum;
     
    6464      break;
    6565    default:
    66       cs_debug ("[dre-reader] unknown error: %s.", cs_hexdump (0, cta_res, *p_cta_lr));
     66      cs_debug_mask(D_READER, "[dre-reader] unknown error: %s.", cs_hexdump (0, cta_res, *p_cta_lr));
    6767      break;
    6868    }
     
    9999    uchar pbm[32];
    100100    memcpy (pbm, cta_res + 3, cta_lr - 6);
    101     cs_debug ("[dre-reader] pbm: %s", cs_hexdump (0, pbm, 32));
     101    cs_debug_mask(D_READER, "[dre-reader] pbm: %s", cs_hexdump (0, pbm, 32));
    102102
    103103    if (pbm[0] == 0xff)
     
    260260    ecmcmd41[20] = er->ecm[6];  //keynumber
    261261    ecmcmd41[21] = 0x58 + er->ecm[25];  //package number
    262     cs_debug ("[dre-reader] unused ECM info front:%s", cs_hexdump (0, er->ecm, 8));
    263     cs_debug ("[dre-reader] unused ECM info back:%s", cs_hexdump (0, er->ecm + 24, er->ecm[2] + 2 - 24));
     262    cs_debug_mask(D_READER, "[dre-reader] unused ECM info front:%s", cs_hexdump (0, er->ecm, 8));
     263    cs_debug_mask(D_READER, "[dre-reader] unused ECM info back:%s", cs_hexdump (0, er->ecm + 24, er->ecm[2] + 2 - 24));
    264264    if ((dre_cmd (ecmcmd41))) { //ecm request
    265265      if ((cta_res[cta_lr - 2] != 0x90) || (cta_res[cta_lr - 1] != 0x00))
     
    281281    };
    282282    memcpy (ecmcmd51 + 1, er->ecm + 5, 0x21);
    283     cs_debug ("[dre-reader] unused ECM info front:%s", cs_hexdump (0, er->ecm, 5));
    284     cs_debug ("[dre-reader] unused ECM info back:%s", cs_hexdump (0, er->ecm + 37, 4));
     283    cs_debug_mask(D_READER, "[dre-reader] unused ECM info front:%s", cs_hexdump (0, er->ecm, 5));
     284    cs_debug_mask(D_READER, "[dre-reader] unused ECM info back:%s", cs_hexdump (0, er->ecm + 37, 4));
    285285    ecmcmd51[33] = reader->provider;    //no part of sig
    286286    if ((dre_cmd (ecmcmd51))) { //ecm request
     
    357357  def_resp;
    358358
    359   cs_ddump (ep->emm, ((ep->emm[1] & 0x0f) << 8) + ep->emm[2] + 3, "EMM:");
     359  cs_ddump_mask(D_READER, ep->emm, ((ep->emm[1] & 0x0f) << 8) + ep->emm[2] + 3, "EMM:");
    360360
    361361  if (reader->caid[0] == 0x4ae1) {
Note: See TracChangeset for help on using the changeset viewer.