Changeset 4141 for trunk/csctapi/atr.c


Ignore:
Timestamp:
12/18/10 08:10:55 (10 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/csctapi/atr.c

    r3198 r4141  
    184184    if ( (atr->pn==1) && (atr->ib[pn][ATR_INTERFACE_BYTE_TA].present == TRUE)) {
    185185        uchar FI;
    186         cs_debug("TA1 = %02x",atr->ib[pn][ATR_INTERFACE_BYTE_TA].value);
     186        cs_debug_mask(D_ATR, "TA1 = %02x",atr->ib[pn][ATR_INTERFACE_BYTE_TA].value);
    187187        FI=(atr->ib[pn][ATR_INTERFACE_BYTE_TA].value & 0xF0)>>4;
    188         cs_debug("FI = %02x",FI);
     188        cs_debug_mask(D_ATR, "FI = %02x",FI);
    189189        if(atr_fs_table[FI]==0) {
    190             cs_debug("Invalid ATR as FI is not returning a valid frequency value");
     190            cs_debug_mask(D_ATR, "Invalid ATR as FI is not returning a valid frequency value");
    191191            return (ATR_MALFORMED);
    192192        }
     
    196196    if ( (atr->pn==1) && (atr->ib[pn][ATR_INTERFACE_BYTE_TB].present == TRUE)) {
    197197        if(atr->ib[pn][ATR_INTERFACE_BYTE_TB].value > 0x80) {
    198             cs_debug("Invalid ATR as TB1 has an invalid value");
     198            cs_debug_mask(D_ATR, "Invalid ATR as TB1 has an invalid value");
    199199            return (ATR_MALFORMED);
    200200        }
Note: See TracChangeset for help on using the changeset viewer.