Changeset 2104


Ignore:
Timestamp:
04/16/10 15:39:03 (14 years ago)
Author:
_network
Message:

modular: add compiling without debug messages

Location:
branches/modular
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/modular/config.sh

    r1919 r2104  
    1313fi
    1414
    15 addons="WEBIF HAVE_DVBAPI IRDETO_GUESSING"
     15addons="WEBIF HAVE_DVBAPI IRDETO_GUESSING WITH_DEBUG"
    1616protocols="MODULE_CAMD33 MODULE_CAMD35 MODULE_CAMD35_TCP MODULE_NEWCAMD MODULE_CCCAM MODULE_RADEGAST MODULE_SERIAL MODULE_MONITOR"
    1717readers="WITH_CARDREADER READER_NAGRA READER_IRDETO READER_CONAX READER_CRYPTOWORKS READER_SECA READER_VIACCESS READER_VIDEOGUARD READER_DRE"
     
    6363        HAVE_DVBAPI     "DVB-API"       $(check_test "HAVE_DVBAPI") \
    6464        IRDETO_GUESSING "Irdeto Guessing"   $(check_test "IRDETO_GUESSING") \
     65        WITH_DEBUG      "Debug messages"    $(check_test "WITH_DEBUG") \
    6566        2> ${tempfile}
    6667
  • branches/modular/globals.h

    r2102 r2104  
    4141#endif
    4242
     43#include "oscam-config.h"
     44
     45#ifdef WITH_DEBUG
    4346#define call(arg) \
    4447    if (arg) { \
     
    4649        return ERROR; \
    4750    }
    48 
    49 #include "oscam-config.h"
     51#else
     52#define call(arg) arg
     53#endif
     54
    5055#ifndef USE_CMAKE
    5156#  include "oscam-ostype.h"
     
    10391044extern void cs_write_log(char *);
    10401045extern void cs_log(char *,...);
     1046#ifdef WITH_DEBUG
    10411047extern void cs_debug(char *,...);
    10421048extern void cs_debug_nolf(char *,...);
     
    10441050extern void cs_ddump(uchar *, int, char *, ...);
    10451051extern void cs_ddump_mask(unsigned short, uchar *, int, char *, ...);
     1052#else
     1053#define cs_debug(...)
     1054#define cs_debug_mask(...)
     1055#define cs_debug_nolf(...)
     1056#define cs_ddump(...)
     1057#define cs_ddump_mask(...)
     1058#endif
    10461059extern void cs_close_log(void);
    10471060extern int  cs_init_statistics(char *);
  • branches/modular/oscam-config.h

    r2053 r2104  
    99#ifndef IRDETO_GUESSING
    1010//#define IRDETO_GUESSING
     11#endif
     12
     13#ifndef WITH_DEBUG
     14#define WITH_DEBUG
    1115#endif
    1216
     
    5256#ifdef WITH_CARDREADER
    5357#ifndef READER_NAGRA
    54 //#define READER_NAGRA
     58#define READER_NAGRA
    5559#endif
    5660
  • branches/modular/oscam-log.c

    r2079 r2104  
    226226    fp=(FILE *)0;
    227227}
    228 
     228#ifdef WITH_DEBUG
    229229void cs_debug(char *fmt,...)
    230230{
     231
    231232    char txt[256];
    232233
     
    241242        write_to_log(-1, txt);
    242243    }
     244
    243245}
    244246
    245247void cs_debug_mask(unsigned short mask, char *fmt,...)
    246248{
     249
    247250    char txt[256];
    248251    if (client[cs_idx].dbglvl & mask)
     
    255258        write_to_log(-1, txt);
    256259    }
     260
    257261}
    258262
     
    275279    }
    276280}
    277 
     281#endif
    278282void cs_dump(uchar *buf, int n, char *fmt, ...)
    279283{
     
    299303    }
    300304}
    301 
     305#ifdef WITH_DEBUG
    302306void cs_ddump(uchar *buf, int n, char *fmt, ...)
    303307{
     
    355359    }
    356360}
    357 
     361#endif
    358362int cs_init_statistics(char *file)
    359363{
  • branches/modular/oscam-types.h

    r1389 r2104  
    2020 #ifdef OS_MACOSX
    2121    #include <machine/endian.h>
     22    #define __BYTE_ORDER __DARWIN_BYTE_ORDER
     23    #define __BIG_ENDIAN    __DARWIN_BIG_ENDIAN
     24    #define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
    2225 #else
    2326    #include <endian.h>
Note: See TracChangeset for help on using the changeset viewer.